-
Notifications
You must be signed in to change notification settings - Fork 177
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the same Help for metrics with and without labels
When metrics are pre-registered with Help and without labels, when issuing metrics with labels, the help was filled with the key_name. But prometheus client enforces help to be consistent accross several elements, so, it can break at Runtime if a metric has been declared without its labels and later issued this metric with labels. In order to fix this, we store the help declared at startup for each key, so, when declaring a metric with some labels, we try to re-used pre-declared help for the metric. It should fix the issue that appeared with Consul 1.9.x and fix hashicorp/consul#9471
- Loading branch information
1 parent
e640e04
commit 923ff58
Showing
2 changed files
with
116 additions
and
30 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