Re-exports
pub use prometheus;
Structs
The underlying implementation for Counter
and IntCounter
.
A atomic float.
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.
A atomic signed integer.
A struct for registering Prometheus collectors, collecting their metrics, and gathering
them into MetricFamilies
for exposition.
A metric whose values are obtained from an existing source, instead of being independently recorded.
A atomic unsigned integer.
Enums
The error types for prometheus.
Traits
A source of values for a SourcedMetric
.
Functions
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
.
Initializes the metrics context, and starts an HTTP server to serve metrics.
Type Definitions
The underlying implementation for CounterVec
and IntCounterVec
.
The underlying implementation for GaugeVec
and IntGaugeVec
.
A counter whose values are obtained from an existing source.
A gauge whose values are obtained from an existing source.