Available on crate feature
metrics
only.Expand description
Access to non-delete-on-drop vector types
Type Aliases§
- Counter
Vec - A
Collector
that bundles a set ofCounter
s that all share the sameDesc
, 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. number of HTTP requests, partitioned by response code and method). - Gauge
- A
Metric
represents a single numerical value that can arbitrarily go up and down. - Gauge
Vec - A
Collector
that bundles a set ofGauge
s that all share the sameDesc
, 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. number of operations queued, partitioned by user and operation type). - Histogram
Vec - A
Collector
that bundles a set of Histograms that all share the sameDesc
, 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). - IntCounter
Vec - The integer version of
CounterVec
. Provides better performance if metric are all positive integers (natural numbers). - IntGauge
Vec - The integer version of
GaugeVec
. Provides better performance if metric values are all integers. - UInt
Gauge Vec - The unsigned integer version of
GaugeVec
. Provides better performance if metric values are all unsigned integers.