Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InFlightGauge = prometheus.NewGauge( prometheus.GaugeOpts{ Name: "in_flight_requests", Help: "A gauge of requests currently being served by the wrapped handler.", }, ) // RequestDuration is partitioned by the HTTP method and handler. It uses custom // buckets based on the expected request duration. RequestDuration = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "request_duration_seconds", Help: "A histogram of latencies for requests.", Buckets: prometheus.DefBuckets, }, []string{"method", "path", "status", "version"}, ) // ResponseSize has no labels, making it a zero-dimensional // ObserverVec. ResponseSize = prometheus.NewHistogramVec( prometheus.HistogramOpts{ Name: "response_size_bytes", Help: "A histogram of response sizes for requests.", Buckets: []float64{200, 500, 900, 1500}, }, []string{}, ) )
Functions ¶
func ObserveResponseSize ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.