Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MetricRequestsTotal = prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "http_request_total", Help: "HTTP Request Count.", }, []string{"status", "path"}, ) MetricRequestDurationSecondsBucket = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "http_request_duration_seconds_bucket", Help: "Histogram of latencies for HTTP requests.", Buckets: []float64{0.1, 0.2, 0.4, 1, 3, 8, 20, 60, 120}, }, []string{"status", "path"}, ) )
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.