package basic import ( "github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promauto" ) const ( metricNamespace = "bouncer_layer_authn_basic" metricLabelProxy = "proxy" metricLabelLayer = "layer" ) var ( metricAuthorizedTotal = promauto.NewCounterVec( prometheus.CounterOpts{ Name: "authorized_total", Help: "Bouncer's authn-basic layer total authorized accesses", Namespace: metricNamespace, }, []string{metricLabelProxy, metricLabelLayer}, ) metricForbiddenTotal = promauto.NewCounterVec( prometheus.CounterOpts{ Name: "forbidden_total", Help: "Bouncer's authn-basic layer total forbidden accesses", Namespace: metricNamespace, }, []string{metricLabelProxy, metricLabelLayer}, ) )