-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when metric is presented in two different prom files #485
Comments
I found solution. This error rise in registy.ro. If tries to found HELP comment for metric, and if does not find, use file name. But for equal metric in different files help text will be different. So, you can add equal HELP comment line for every metric.
|
Thanks @borsden, good point! |
Hi, I ran into this, and thought I'd clarify the current state of node_exporter when the same "helpless" metric (same name, different labels, no "# HELP") is present in multiple input files:
Adding # HELP gets rid of the error message and allows the metrics to be parsed too. |
having the same metric in multiple files is officially not supported. |
For the record, the same error can occur for wmi-exporter. |
@SuperQ could you elaborate on why this is? Is it a technical constraint (difficult to implement correctly) or is there some other reason? I ran into this today and was caught by surprise. There are a couple of ways I can think of to work around it but none of them feels particularly elegant (and writing a new exporter would be complete overkill for what I'm trying to do with the textfiles collector). If there's a good reason to keep it unsupported, would you at least accept a pull request to update https://github.com/prometheus/node_exporter/blob/master/README.md#textfile-collector to define this behavior since the documentation currently does not indicate this? |
To reproduce just clone any
prom
and change labels in a new file.The text was updated successfully, but these errors were encountered: