Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( RequestCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: "bcs_api", Name: "request_count_total", Help: "Counter of requests to bcs-api.", }, []string{"type", "method"}) RequestErrorCount = prometheus.NewCounterVec(prometheus.CounterOpts{ Namespace: "bcs_api", Name: "request_err_count_total", Help: "Counter of error requests to bcs-api.", }, []string{"type", "method"}) RequestLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: "bcs_api", Name: "request_latency_seconds", Buckets: timeBuckets, Help: "Histogram of the time (in seconds) each request took.", }, []string{"type", "method"}) RequestErrorLatency = prometheus.NewHistogramVec(prometheus.HistogramOpts{ Namespace: "bcs_api", Name: "request_error_latency_seconds", Buckets: timeBuckets, Help: "Histogram of the time (in seconds) each error request took.", }, []string{"type", "method"}) )
Metrics the bcs-api exports.
Functions ¶
func RunMetric ¶
func RunMetric(conf *config.ApiServConfig, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.