Expand description
Core traits and types.
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 theirDesc
under the hood. - Generic
Counter - The underlying implementation for
Counter
andIntCounter
. - Generic
Gauge - The underlying implementation for
Gauge
andIntGauge
. - Generic
Local Counter - The underlying implementation for
LocalCounter
andLocalIntCounter
. - Generic
Local Counter Vec - The underlying implementation for
LocalCounterVec
andLocalIntCounterVec
. - Metric
Vec - A
Collector
to bundle metrics of the same name that differ in their label values. It is usually not used directly but as a building block for implementations of vectors of a given metric type.GaugeVec
andCounterVec
are examples already provided in this package. - Opts
- A struct that bundles the options for creating most
Metric
types.
Traits§
- Atomic
- An interface for atomics. Used to generically model float metrics and integer metrics, i.e.
Counter
andIntCounter
. - 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.
Counter
andIntCounter
.
Type Aliases§
- Generic
Counter Vec - The underlying implementation for
CounterVec
andIntCounterVec
. - Generic
Gauge Vec - The underlying implementation for
GaugeVec
andIntGaugeVec
.