braedon / prometheus-kafka-consumer-group-exporter

Prometheus Kafka Consumer Group Exporter
MIT License
73 stars 39 forks source link

Catch exceptions if keys/values fail to parse. Resolves #22. #23

Closed jutley closed 5 years ago

jutley commented 5 years ago

There are scenarios where the data in __consumer_offsets may not match the expected values. In such cases, this exporter will completely fail and will never be able to progress on partition with the problematic message.

This PR catches the exception, then discards the message and moves on.

stefan-hudelmaier commented 5 years ago

We have this issue in our cluster as well, and this PR resolves the problem.

braedon commented 5 years ago

Thanks for the PR @jutley. Going to add some logging as well, to try and isolate this issue in the future.