Expand description
Mirrors prometheus::core and provides GenericGauge/GenericCounter
wrappers compatible with prometheus’s own generic types.
crate::IntGauge, crate::Gauge, crate::IntCounter, and
crate::Counter are type aliases for concrete instantiations of these
types, so Option<IntGauge> and Option<GenericGauge<AtomicI64>> are
the same type.
Structs§
- Atomic
F64 - A atomic float.
- Atomic
I64 - A atomic signed integer.
- Atomic
U64 - A atomic unsigned integer.
- Desc
- The descriptor used by every Prometheus
Metric. It is essentially the immutable meta-data of a metric. The normal metric implementations included in this package manage theirDescunder the hood. - Generic
Counter - Generic
Counter Vec - Generic
Gauge - Generic
Gauge Vec - Histogram
- Histogram
Timer - Histogram
Vec
Traits§
- Atomic
- An interface for atomics. Used to generically model float metrics and integer metrics, i.e.
CounterandIntCounter. - Collector
- An interface for collecting metrics.
- Describer
- An interface for describing the immutable meta-data of a
Metric. - Metric
- An interface models a single sample value with its meta data being exported to Prometheus.
- Metric
VecBuilder - An interface for building a metric vector.
- Number
- An interface for numbers. Used to generically model float metrics and integer metrics, i.e.
CounterandIntCounter.