Metrics HELP conflict results in data loss #985
Replies: 3 comments
-
ErrorInfo:
|
Beta Was this translation helpful? Give feedback.
-
The Prometheus exposition format doesn't allow different HELP strings for one and the same metric name. Therefore, an instrumentation library has to resolve the conflict somehow. It is safest to bail out with a clear error. And it would be quite weird to ignore "small" errors like typos but then have some threshold (if the string is "totally different") where we would throw the error again. Within the same binary, you have full control of the exposed metrics and should be able to fix the problem. I don't quite understand the premise here, though, i.e. "My client has two versions of node_exporter in their system environment". Every node_exporter should run on their own. They should not end up in the same client_golang registry, unless you somehow take the code of both node_exporter versions and use both code bases in one and the same derived binary. |
Beta Was this translation helpful? Give feedback.
-
My client has two versions of node_exporter in their system environment
The HELP for node_cpu_seconds_total is different in the two versions
If both node_exporter indicators are collected at the same time
One of these will be discarded due to HELP conflicts
Why do we do this?
It is only the difference of HELP
Beta Was this translation helpful? Give feedback.
All reactions