Documentation ¶
Overview ¶
Package metrics provides an HTTP handler which registers counters for the number of requests received and responses sent as well as quantiles of the latency of responses.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Wrap ¶
Wrap returns a handler which records the number of requests received and responses sent to the given handler, as well as latency quantiles for responses over a five-minute window.
These counters are published as the following metrics:
HTTP.Requests HTTP.Responses HTTP.Latency.{P50,P75,P90,P95,P99,P999}
By tracking incoming requests and outgoing responses, one can monitor not only the requests per second, but also the number of requests being processed at any given point in time.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.