Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Evict all metrics for a cluster on collector stop or failure #154

Merged
merged 2 commits into from
Sep 1, 2020

Conversation

seglo
Copy link
Owner

@seglo seglo commented Sep 1, 2020

Fixes #110

Since metric reporters can outlive collector instances, stale metrics from a failed or removed cluster (i.e. a Strimzi cluster that was deleted) will remain listed indefinitely on the prometheus endpoint. This PR evicts all metrics that are part of the collector's offset snapshot data when the collector shuts down gracefully or due to a failure.

@seglo seglo merged commit 4bc0bb7 into master Sep 1, 2020
@seglo seglo deleted the seglo/evict-metrics-on-cluster-stop branch September 1, 2020 20:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Kafka consumer offsets not working after broker restart
1 participant