Module linera_base::prometheus_util
source · Expand description
This module defines utility functions for interacting with Prometheus (logging metrics, etc)
Structs§
- A guard for an active latency measurement.
Traits§
- An extension trait for metrics that can be used to measure latencies.
Functions§
- Construct the bucket interval exponentially starting from a value and an ending value.
- Construct the latencies exponentially starting from 0.001 and ending at the maximum latency
- Construct the bucket interval linearly starting from a value and an ending value.
- Construct the latencies linearly starting from 1 and ending at the maximum latency
- Wrapper around Prometheus
register_histogram_vec!
macro which also sets thelinera
namespace - Wrapper around Prometheus register_int_counter_vec! macro which also sets the
linera
namespace