prometheus_client::metrics::histogram

Function exponential_buckets_range

Source
pub fn exponential_buckets_range(
    min: f64,
    max: f64,
    length: u16,
) -> impl Iterator<Item = f64>
Expand description

Exponential bucket distribution within a range

Creates length buckets, where the lowest bucket is min and the highest bucket is max.

If length is less than 1, or min is less than or equal to 0, an empty iterator is returned.