This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 327
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Prometheus Histograms to be cumulative
Fixes #649 The current Prometheus Histogram creator takes in a mapping of bucket values to counts, having already assumed that the creator made cumulative results i.e. added the result of the largest minimum to the current. Prometheus mentions this expectation at https://godoc.org/github.com/prometheus/client_golang/prometheus#NewConstHistogram Also added a test to ensure that we never regress on this behavior.
- Loading branch information
Showing
2 changed files
with
116 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters