Expand description
Prometheus BucketQuantile and BucketFraction over the buckets of a classic histogram at
one point.
Structsยง
- Bucket ๐
Constantsยง
- SMALL_
DELTA_ ๐TOLERANCE - Relative difference under which neighbouring bucket counts are taken as equal.
Functionsยง
- almost_
equal ๐ - Prometheus
almost.Equal. - bucket_
fraction ๐ - Prometheus
BucketFractionover buckets sorted by upper bound. - bucket_
quantile ๐ - Prometheus
BucketQuantileover buckets sorted by upper bound. - coalesce ๐
- Merges buckets with the same upper bound.
- ensure_
monotonic ๐ - Prometheus
ensureMonotonicAndIgnoreSmallDeltas: counts that differ from the previous one by a negligible relative amount, or are lower, are raised to it. - go_
search ๐ - Goโs
sort.Search: the smallest index in[0, n)wherefholds, orn, found by the same bisection, so a predicate that is not monotonic (NaN counts) picks the same index. - parse_
bound ๐ - Goโs
strconv.ParseFloat, which rejects finite literals out of the f64 range and a signed NaN, and accepts_between digits. Hexadecimal literals are not supported. - underscores_
ok ๐ - Goโs
strconv.underscoreOKfor a decimal literal: every_sits between two digits.