All Prometheus histogram metrics using ResettingSample have broken _count and _sum values. They decrease on every scrape instead of monotonically increasing, which violates the Prometheus counter type spec and breaks rate(),
increase(), and average latency calculations.
https://prometheus.io/docs/concepts/metric_types/#counter
A counter is a cumulative metric that represents a single monotonically increasing counter whose value can only increase or be reset to zero on restart.
Should we fix it?
All Prometheus histogram metrics using
ResettingSamplehave broken_countand_sumvalues. They decrease on every scrape instead of monotonically increasing, which violates the Prometheus counter type spec and breaksrate(),increase(), and average latency calculations.https://prometheus.io/docs/concepts/metric_types/#counter
Should we fix it?