Skip to content

Handle errors from ExtractSamples #15

@fxnn

Description

@fxnn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions