Monitoring data
Prometheus bucket consistency
Check ordered cumulative buckets, +Inf and a supplied histogram _count.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Check increasing bounds and nondecreasing integer counts. Require a final +Inf bucket equal to _count; subtract adjacent counts for each bucket’s local count.
Counts 10,20,30 yield local bucket counts 10,10,10; +Inf equals the supplied count 30.
Limits
One classic histogram snapshot as a two-column table. This does not parse a full metrics file, native histograms, rates or quantiles. Counts must be whole nonnegative numbers.