Skip to main content

histogram_quantiles

Function histogram_quantiles 

Source
pub fn histogram_quantiles(
    label: &str,
    quantiles: &[f64],
    schema: &Arc<SeriesSchema>,
    series: &[Series],
) -> Result<Vec<Series>>
Expand description

histogram_quantiles(v, label, q...): evaluate_histograms with Quantile(q) for each q, each result labelled with label set to q as Prometheus’ FormatOpenMetricsFloat writes it. Results that then share a label set merge as merge_same_labelset does, so a repeated q, or a label that overwrites the label telling two histograms apart, fails at a point both hold.

Each q is a constant. Prometheus evaluates the quantile arguments at every step, so a quantile that varies over time is not this kernel’s to evaluate.