* gathered metric family node_service_state_last_run_exit_code has help "Metric read from /var/lib/node_exporter/node_service_node_exporter_last_exit_code2.prom" but should have "Metric read from /var/lib/node_exporter/node_service_node_exporter_last_exit_code.prom"
To reproduce just clone any prom and change labels in a new file.
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.
For example:
first.prom
# HELP mymetric mymetric_help_text
mymetric{source="source",target="target"} 1 1490257498360
second.prom
# HELP mymetric mymetric_help_text
mymetric{source="source",target="target"} 112323 1490257498360
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.
This is with the binary download node_exporter-0.14.0.linux-amd64.
having the same metric in multiple files is officially not supported.
For the record, the same error can occur for wmi-exporter.
Most helpful comment
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.
For example:
# HELP mymetric mymetric_help_text mymetric{source="source",target="target"} 1 1490257498360# HELP mymetric mymetric_help_text mymetric{source="source",target="target"} 112323 1490257498360