Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OAuthSuccessRateCounter = prometheus.NewCounterVec( prometheus.CounterOpts{ Namespace: namespace, Name: "call", Help: "Number of oauth2 call outcome per endpoint", }, []string{ "oauth_endpoint", "outcome", }, ) OAuthDurationHist = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Namespace: namespace, Name: "call_dur", Help: "Histogram for the duration of oauth2 call", }, []string{"oauth_endpoint"}, ) )
Functions ¶
func DeferMonitorError ¶
func MonitorError ¶
func MonitorOutcome ¶
func MonitorOutcome(endpoint, outcome string)
func PrometheusMetricsRegister ¶
func PrometheusMetricsRegister()
PrometheusMetricsRegister Register metrics with prometheus
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.