package oidc import ( "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" ) const ( metricNamespace = "bouncer_layer_authn_oidc" metricLabelProxy = "proxy" metricLabelLayer = "layer" ) var ( metricLoginRequestsTotal = promauto.NewCounterVec( prometheus.CounterOpts{ Name: "login_requests_total", Help: "Bouncer's authn-oidc layer total login requests", Namespace: metricNamespace, }, []string{metricLabelProxy, metricLabelLayer}, ) metricLoginSuccessesTotal = promauto.NewCounterVec( prometheus.CounterOpts{ Name: "login_successes_total", Help: "Bouncer's authn-oidc layer total login successes", Namespace: metricNamespace, }, []string{metricLabelProxy, metricLabelLayer}, ) metricLogoutsTotal = promauto.NewCounterVec( prometheus.CounterOpts{ Name: "logout_total", Help: "Bouncer's authn-oidc layer total logouts", Namespace: metricNamespace, }, []string{metricLabelProxy, metricLabelLayer}, ) )