Skip to main content

Module aggregate

Module aggregate 

Source
Expand description

The compensated sum and avg fold of native histograms, following the histogram paths of Prometheus aggregation. The range functions sum_over_time and avg_over_time fold a window with it, and the aggregate node runs the same steps per point through crate::aggregate::HistogramAccumulator.

Enumsยง

HistogramAggregate ๐Ÿ”’
A native histogram aggregation.

Functionsยง

sum_or_avg ๐Ÿ”’
The Kahan sum or the mean of histograms in order, without compaction; None when there is none or they mix exponential and custom buckets. Prometheus sum_over_time and avg_over_time run the same steps as the aggregations. Histograms are consumed one at a time, so the first error ends the fold. The result is derived, so it carries no start timestamp.