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

Handle errors from ExtractSamples #15

Open
fxnn opened this issue Oct 29, 2019 · 0 comments
Open

Handle errors from ExtractSamples #15

fxnn opened this issue Oct 29, 2019 · 0 comments

Comments

@fxnn
Copy link

fxnn commented Oct 29, 2019

Unfortunately, sensu-prometheus-collector doesn't handle errors occuring during expfmt.ExtractSamples. The error result is simply ignored.

In my case, there are 782 lines of metrics (seemingly in the proper format) behind an -exporter-url, but the sensu-prometheus-collector outputs nothing. I already found out that, if there was an HTTP error, there should've been an error message on the output, so I guess that the problem occurs druing parsing.

@fxnn fxnn changed the title Print error messages Print debug information Oct 29, 2019
@fxnn fxnn changed the title Print debug information Handle errors from ExtractSamples Oct 29, 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

No branches or pull requests

1 participant