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

collectors: add proper scraping http error logging, continue if error encountered #55

Merged
merged 3 commits into from
Sep 2, 2020

Conversation

Roasbeef
Copy link
Member

In this PR, we hook up a proper error logger for promhttp, which means that we'll now get error logging if Prometheus encounters an error during scraping. We also modify the default arguments to allow the scraper to continue if if runs into any errors along the way.

With this commit, any errors that happen while lndmon is being scraped
will be printed out to stdout. In the future, with a small interface
wrapper, we'll also be able to add this to the regular log rotation.
Now that we log the errors, it's safe to just log and continue if prom
encounters them while scraping.
@Roasbeef Roasbeef merged commit 5c35e73 into master Sep 2, 2020
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 this pull request may close these issues.

1 participant