AlexanderThaller / prometheus_exporter

Helper libary to export prometheus metrics using tiny_http and rust-prometheus.
MIT License
28 stars 10 forks source link

Allow exporter to indicate failed status #33

Closed AlexanderThaller closed 1 year ago

AlexanderThaller commented 1 year ago

Fixes #32.

Add set_status_failing to the Exporter struct. When Exporter is in failing mode it will return a 500 response containing an up metric set to 0 and an optional error message when scraped.