Expand description
Histogram functions over evaluated series: histogram_quantile and histogram_fraction over
classic and native histograms (Prometheus funcHistogramQuantile, funcHistogramFraction
and resetHistograms), and histogram_count, histogram_sum, histogram_avg,
histogram_stddev and histogram_stdvar over native histograms.
ModulesΒ§
- aggregate π
- The compensated
sumandavgfold of native histograms, following the histogram paths of Prometheusaggregation. The range functionssum_over_timeandavg_over_timefold a window with it, and the aggregate node runs the same steps per point throughcrate::aggregate::HistogramAccumulator. - bounds π
- Prometheus
exponentialBounds(model/histogram/generic.go): the bucket bounds in [0.5, 1) of exponential schemas 0 to 8, whichgetBoundExponentialscales by a power of two. - classic π
- Prometheus
BucketQuantileandBucketFractionover the buckets of a classic histogram at one point. - float_
histogram π - Arithmetic on owned native histograms, following Prometheus
FloatHistogram(model/histogram/float_histogram.go):Add,KahanAdd,Sub,Mul,Div,Compact,CopyToSchema,DetectResetandEquals, including zero bucket reconciliation, resolution reduction and the intersection of mismatched custom bounds. - legacy_
bridge π - The legacy native-histogram estimators, delegated to the native kernel.
- native π
- Prometheus
HistogramQuantile,HistogramFractionand thehistogramVarianceestimate over one native histogram, with the bucket iteration ofmodel/histogram.
StructsΒ§
- Group π
- The series of one label set (
leaside): classic buckets, and the series of exactly that label set when it holds native histograms. - Histogram
Parameters - Per-grid-point arguments to a classic or native histogram function.
EnumsΒ§
- Histogram
Function histogram_quantileorhistogram_fractionwith its constant arguments.- Native
Histogram Function - A function of one native histogram.
ConstantsΒ§
- BUCKET_
LABEL π - HISTOGRAM_
ROUTING_ πEXCLUDED_ LABELS - Histogram inputs that can produce the same output must meet at one partition. The kernel still groups by metadata before removing it, so distinct histograms are not mixed together.
FunctionsΒ§
- evaluate_
histograms - Evaluates
functionover the classic and native histograms inseries. - evaluate_
histograms_ πwith_ annotations - Evaluates
functionwith optional per-point scalar arguments, reporting what it drops tocollector. A missing parameter value suppresses the output at that point, matching aggregate quantileβs missing-q behavior. - grid_
axis π - Checks that
seriesis addressed on a grid, which is what a position lookup needs. - has_
histograms π - histogram_
quantiles histogram_quantiles(v, label, q...):evaluate_histogramswithQuantile(q)for eachq, each result labelled withlabelset toqas PrometheusβFormatOpenMetricsFloatwrites it. Results that then share a label set merge asmerge_same_labelsetdoes, so a repeatedq, or alabelthat overwrites the label telling two histograms apart, fails at a point both hold.- histogram_
string π - A native histogram as Goβs
FloatHistogram.Stringwrites it, the label valuecount_valuesgives a histogram sample. - map_
native_ histogram - Applies
functionto the native histogram samples ofseries; float samples are dropped and so is__name__.Nonewhen the series has no histogram sample.