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

Reduce cardinality on rules backup metrics by counting rules per tenant #5873

Conversation

emanlodovice
Copy link
Contributor

@emanlodovice emanlodovice commented Apr 19, 2024

What this PR does:
This PR address this comment https://github.com/cortexproject/cortex/pull/5782/files#r1543847038 from a recently merged PR.
We replaced the metric cortex_ruler_backup_rule_group which has the rule_group as label and has value 1 or 0 with the metric cortex_ruler_backup_rules which contains the number of rules the ruler stores in backup for each tenant and cortex_ruler_backup_rule_groups which contains the number of rule groups the ruler stores in backup for each tenant. This should reduce the cardinality.

Checklist

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

@emanlodovice emanlodovice force-pushed the reduce-ruler-backup-metrics-cardinality branch from 74f0152 to 61e9772 Compare April 23, 2024 03:13
@pull-request-size pull-request-size bot added size/L and removed size/M labels Apr 23, 2024
@qinxx108
Copy link
Contributor

LGTM

Copy link
Contributor

@rajagopalanand rajagopalanand left a comment

Choose a reason for hiding this comment

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

LGTM

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

@yeya24 yeya24 merged commit 2bef789 into cortexproject:master Apr 23, 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.

5 participants