Module relay_utils::metrics
source · Structs§
- The underlying implementation for [
Counter
] and [IntCounter
]. - A atomic float.
- Metric that represents float value received from HTTP service as float gauge.
- The underlying implementation for [
Gauge
] and [IntGauge
]. - Global Prometheus metrics.
- A atomic signed integer.
- Unparsed address that needs to be used to expose Prometheus metrics.
- Prometheus endpoint MetricsParams.
- A struct that bundles the options for creating most [
Metric
] types. - A struct for registering Prometheus collectors, collecting their metrics, and gathering them into
MetricFamilies
for exposition. - A atomic unsigned integer.
Enums§
- The error types for prometheus.
Traits§
- An interface for atomics. Used to generically model float metrics and integer metrics, i.e.
Counter
andIntCounter
. - An interface for collecting metrics.
- Metric API.
- Standalone metric API.
Functions§
- Returns metric name optionally prefixed with given prefix.
- Set value of gauge metric.
Type Aliases§
- The underlying implementation for [
CounterVec
] and [IntCounterVec
]. - Shared reference to
f64
value that is updated by the metric. - The underlying implementation for [
GaugeVec
] and [IntGaugeVec
]. - Int gauge metric type.