Skip to main content

Module native

Module native 

Source
Expand description

Prometheus HistogramQuantile, HistogramFraction and the histogramVariance estimate over one native histogram, with the bucket iteration of model/histogram.

StructsΒ§

NativeBucket πŸ”’

ConstantsΒ§

CUSTOM_BUCKETS_SCHEMA πŸ”’

FunctionsΒ§

all_buckets πŸ”’
The buckets of h from the lowest to the highest, or the reverse: negative buckets, the zero bucket when it has observations, then positive buckets (Go AllBucketIterator and AllReverseBucketIterator). Buckets overlapping the zero bucket are clipped to it.
bound πŸ”’
Go getBound.
bucket πŸ”’
fraction πŸ”’
Prometheus HistogramFraction.
fraction_below_exponential πŸ”’
Go Bucket.FractionBelow with exponential interpolation.
go_string πŸ”’
Go FloatHistogram.String, the form count_values writes a histogram value in: the count and sum, then the buckets holding observations from the lowest up – negative, zero, positive – each as [lower,upper):count with its bounds’ inclusiveness, every number in Go’s %g. Unlike all_buckets, the buckets keep the bounds their index gives, unclipped by the zero bucket.
invalid_layout πŸ”’
ldexp πŸ”’
Go math.Ldexp for a positive normal frac.
push_bucket πŸ”’
Go Bucket.String, with the inclusiveness baseBucketIterator.at gives the bucket.
quantile πŸ”’
Prometheus HistogramQuantile.
side πŸ”’
Appends the buckets of one side by increasing index.
variance πŸ”’
Prometheus histogramVariance: bucket midpoints weighted by count around the mean.