Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove user specific evaluation metrics when rule manager is removed #5772

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

emanlodovice
Copy link
Contributor

@emanlodovice emanlodovice commented Feb 14, 2024

What this PR does:
In #5312 the rule evaluation metrics related to queries and append became per user metrics. But unlike other per user metrics, the multitenant manager is NOT currently deleting these metrics when the ruler manager is deleted leaving multiple dangling metrics. In this PR, we delete these dangling metrics when the rule manager is deleted.

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@emanlodovice emanlodovice force-pushed the cleanup-metrics branch 5 times, most recently from 38ca8ec to e4f2704 Compare February 14, 2024 18:19
pkg/ruler/compat.go Outdated Show resolved Hide resolved
Signed-off-by: Emmanuel Lodovice <lodovice@amazon.com>
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@rajagopalanand
Copy link
Contributor

LGTM

@yeya24 yeya24 merged commit c53a4af into cortexproject:master Feb 15, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants