A Metric counts individual observations from an event or sample stream
in configurable buckets. Similar to a Summary,
it also provides a sum of observations and an observation count.
A struct that bundles the options for creating a Histogram metric. It is
mandatory to set Name and Help to a non-empty string. All other fields are
optional and can safely be left at their zero value.
Create count buckets, where the lowest bucket has an
upper bound of start and each following bucket’s upper bound is factor
times the previous bucket’s upper bound. The final +Inf bucket is not counted
and not included in the returned slice. The returned slice is meant to be
used for the Buckets field of HistogramOpts.
Create count buckets, each width wide, where the lowest
bucket has an upper bound of start. The final +Inf bucket is not counted
and not included in the returned slice. The returned slice is meant to be
used for the Buckets field of HistogramOpts.
A Collector that bundles a set of Histograms that all share the
same Desc, but have different values for their variable labels. This is used
if you want to count the same thing partitioned by various dimensions
(e.g. HTTP request latencies, partitioned by status code and method).