Skip to content

Conversation

@isker
Copy link
Contributor

@isker isker commented Apr 12, 2025

We occasionally see the ECS APIs called by ecs_exporter 500 on the first request or two, so the metrics served by the exporter are nonsense. By using NewInvalidMetric in response to Collect, we can ensure that HTTP 500s are served on /metrics whenever such errors occur.

Closes #97.

We occasionally see the ECS APIs called by ecs_exporter 500 on the first
request or two, so the metrics served by the exporter are nonsense. By
using NewInvalidMetric in response to Collect, we can ensure that HTTP
500s are served on /metrics whenever such errors occur.

Closes prometheus-community#97.

Signed-off-by: Ian Kerins <[email protected]>
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.

Surface failed metric collections to the collector

1 participant