Re-exports§
pub use prometheus;
Macros§
- histogram_
opts - Create a
HistogramOpts
. - opts
- Create an
Opts
. - register_
histogram_ with_ registry - Create a
Histogram
and registers to a custom registry. - register_
int_ counter_ vec_ with_ registry - Create an
IntCounterVec
and registers to a custom registry.
Structs§
- Histogram
- A
Metric
counts individual observations from an event or sample stream in configurable buckets. Similar to aSummary
, it also provides a sum of observations and an observation count. - Text
Encoder - An implementation of an
Encoder
that converts aMetricFamily
proto message into text format.
Statics§
Traits§
- Encoder
- An interface for encoding metric families into an underlying wire protocol.
Functions§
Type Aliases§
- 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
- The integer version of
Counter
. Provides better performance if metric values are all positive integers (natural numbers). - IntCounter
Vec - The integer version of
CounterVec
. Provides better performance if metric are all positive integers (natural numbers).