-
Notifications
You must be signed in to change notification settings - Fork 697
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
textfile: the same metric occurring with different labels in two different prom files trigger error due to inconsistent help message in processFile #1191
Comments
Can you please provide the 2 exact files that trigger the error (or a subset)? And also the exact error message? I currently have multiple servers where multiple files are generated (with same metrics but different labels and I have no issues) |
I've have the same issue If I have one file
everything runs as it should. However, if those two metrics are in different files
then all then no metrics are produced - not just from text files, we get nothing. The error message on
If we have more labelled metrics in other text files, we get an extra error for each additional file. This is using version 0.22.0, but I've seen the same behaviour (without having identified the error) in earlier versions. |
To be clear, having reread JDA88's comment, these are text files on the same machine, being collected by a single instance of windows_exporter. Aggregating labelled metrics across machines works fine, aggregated labelled metrics with the same exporter fails. prometheus/node_exporter#1885 does appear to describe the exact same problem. I'll try and look at prometheus/node_exporter#2475 and see if it can be applied here too. |
Workaround If you're able to add your own |
I think the fix in prometheus/node_exporter#2475 will work pretty much as is. I will try and raise a PR, but should caveat by noting I'm not a regular user of go and I'm in the middle of moving house. It's clear the node_exporter and windows_exporter textfile collectors started from the same place, but have diverged over time. There's some minor incident differences ( |
From my experience if you two files look like this it will work.
|
This issue has been marked as stale because it has been open for 90 days with no activity. This thread will be automatically closed in 30 days if no further activity occurs. |
There's an issue that was fixed in node-exporter, but I seem to be running in to with Windows Exporter. Basically, I have a script writing to 2 different files with the same metric names but different label sets. The exporter is throwing an error because the help message reads 2 different file names. Has this been fixed and I am just unaware of a configuration flag for this, or is this something that needs to be addressed here as well?
prometheus/node_exporter#1885
prometheus/node_exporter#2475
The text was updated successfully, but these errors were encountered: