Skip to content
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

Does this reporter support the newest node version? #9

Closed
raypettersen opened this issue Mar 23, 2017 · 8 comments
Closed

Does this reporter support the newest node version? #9

raypettersen opened this issue Mar 23, 2017 · 8 comments

Comments

@raypettersen
Copy link

I'm getting a lot of errors scraping the .prom files using the new version of the node_exporter.

Example:

time="2017-03-23T12:57:35+01:00" level=error msg="error gathering metrics: 20 error(s) occurred:

  • gathered metric family puppet_report_resources has help "Metric read from /etc/puppet/metrics/foo.prom" but should have "Metric read from /etc/puppet/metrics/bar.prom"

Note that the error involves two different prom files. It seems the first prom (alfabetically) actually succeeds, while everything else fails.

@raypettersen raypettersen changed the title Does this exporter support the newest node version? Does this reporter support the newest node version? Mar 23, 2017
@raypettersen
Copy link
Author

Is this project maintained? None of the other posts have any kind of interaction?

@marius-cotofana-hs
Copy link

Seems to be related to prometheus/node_exporter#485

A quick fix would be to add:

       file.write("# HELP puppet_report metric_help\n")
       metrics.each do |metric, data|
         file.write("# HELP puppet_report_#{metric} metric_help\n")
       end

to prometheus.rb line 71

@raypettersen
Copy link
Author

So if I understand this correctly, the bug is in node, but a workaround in this reporter is possible with your suggestion?

@marius-cotofana-hs
Copy link

That's right.

@pugnacity
Copy link

@marius-cotofana-hs could you make a pull request for the workaround?

@oleg-glushak
Copy link
Contributor

oleg-glushak commented Jan 26, 2018

@pugnacity #22 This fix works for me.

@ldaneliukas
Copy link
Contributor

Should this be closed as #22 was merged?

@ldaneliukas
Copy link
Contributor

Verified running the reporter with node-exporter 0.16.0-8 - everything works as expected, this can be closed

@anarcat anarcat closed this as completed Sep 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants