Expand description
This module defines utility functions for interacting with Prometheus (logging metrics, etc)
Structs§
- ActiveMeasurement Guard 
- A guard for an active latency measurement.
Traits§
- MeasureLatency 
- An extension trait for metrics that can be used to measure latencies.
Functions§
- exponential_bucket_ interval 
- Construct the bucket interval exponentially starting from a value and an ending value.
- exponential_bucket_ latencies 
- Construct the latencies exponentially starting from 0.001 and ending at the maximum latency
- linear_bucket_ interval 
- Construct the bucket interval linearly starting from a value and an ending value.
- register_histogram 
- Wrapper around Prometheus register_histogram!macro which also sets thelineranamespace
- register_histogram_ vec 
- Wrapper around Prometheus register_histogram_vec!macro which also sets thelineranamespace
- register_int_ counter 
- Wrapper around Prometheus register_int_counter!macro which also sets thelineranamespace
- register_int_ counter_ vec 
- Wrapper around Prometheus register_int_counter_vec!macro which also sets thelineranamespace
- register_int_ gauge_ vec 
- Wrapper around Prometheus register_int_gauge_vec!macro which also sets thelineranamespace