Module prometheus::core
source · Expand description
Core traits and types.
Structs§
- A atomic float.
- A atomic signed integer.
- A atomic unsigned integer.
- The underlying implementation for
Counter
andIntCounter
. - The underlying implementation for
LocalCounter
andLocalIntCounter
. - The underlying implementation for
LocalCounterVec
andLocalIntCounterVec
. - 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. - A struct that bundles the options for creating most
Metric
types.
Traits§
- An interface for atomics. Used to generically model float metrics and integer metrics, i.e.
Counter
andIntCounter
. - An interface for collecting metrics.
- An interface for describing the immutable meta-data of a
Metric
. - An interface models a single sample value with its meta data being exported to Prometheus.
- An interface for building a metric vector.
- An interface for numbers. Used to generically model float metrics and integer metrics, i.e.
Counter
andIntCounter
.
Type Aliases§
- The underlying implementation for
CounterVec
andIntCounterVec
. - The underlying implementation for
GaugeVec
andIntGaugeVec
.