Files
floci/docs
Priamo Germosen 324910b4dc feat(cloudwatch): estimate quantiles and spreads of histograms in PromQL (#10029)
histogram_quantile, histogram_fraction, histogram_stddev and
histogram_stdvar follow Prometheus v3.16. A native histogram's quantile
is found from the lowest bucket below 0.5 or for a NaN sum and from the
highest otherwise, interpolated exponentially (Go's Log2 and Exp2) or
linearly in the zero bucket, which reaches only to zero when one side
has no buckets; NaN observations give the NaN-result and skew infos.
The fraction interpolates each bound the same way, and the variance
takes each bucket at the geometric mean of its bounds, Kahan-summed.

Float series with an le label are classic histograms, grouped by their
other labels: BucketQuantile and BucketFraction sort, coalesce and raise
falling counts, with the forced-monotonicity info merged over samples
as Prometheus merges it. A malformed or NaN le (read as Go's ParseFloat
reads it) and a native histogram of a classic one's labels are left out
with Prometheus's warnings. quantile, quantile_over_time and
histogram_quantile warn of a quantile outside 0 to 1.

log2 now takes Go's own Log of the fraction rather than Java's Math.log,
which differed in the last bit for some inputs and so moved a quantile
interpolated through it. Shortest number formatting writes the one digit
Go writes for the smallest subnormals (5e-324, where Java's toString
gives 4.9E-324), in the API's numbers and in annotations alike.

Part of #7030.
2026-12-02 21:45:00 -04:00
..
2026-03-15 17:43:56 -05:00