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.
Unfortunately,
sensu-prometheus-collector
doesn't handle errors occuring duringexpfmt.ExtractSamples
. Theerror
result is simply ignored.In my case, there are 782 lines of metrics (seemingly in the proper format) behind an
-exporter-url
, but thesensu-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.