-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip ConstLabels and namespace prefixes for "up" & internal metrics
Internal metrics consumed by Prometheus such as "up" indicate a status of the target, as either "up" with 1.0 or "down" with 0.0. This change ensures that no ConstLabels, nor namespace prefixes will be added to such metrics. This ensures that when one exports with the special name "up", that it passes through up to the Prometheus exporter, so: # HELP up up # TYPE up counter up{instance="localhost:9999"} 1 instead of: # HELP tests_up tests/up # TYPE tests_up counter tests_up{instance="localhost:9999",service="spanner"} 1 A further assertion can be added to ensure that "up" is a gauge, but I am not sure that it might be necessary, just in case some user wants to expose it as a counter. Updates open-telemetry/prometheus-interoperability-spec#8
- Loading branch information
Showing
2 changed files
with
110 additions
and
0 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