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

HA Tracker: Expose per tenant metric of number of HA replica groups #6397

Open
yeya24 opened this issue Dec 3, 2024 · 3 comments
Open

HA Tracker: Expose per tenant metric of number of HA replica groups #6397

yeya24 opened this issue Dec 3, 2024 · 3 comments

Comments

@yeya24
Copy link
Contributor

yeya24 commented Dec 3, 2024

Is your feature request related to a problem? Please describe.

ha_max_clusters is a runtime config which configures maximum number of clusters/replica groups that HA tracker will keep track of for single user.

As a user, there is no visibility to check number of replica groups each user has as it is not exposed as a metric so it is hard to configure ha_max_clusters. We have to rely on information from users about how many clusters they have.

Describe the solution you'd like

https://github.com/cortexproject/cortex/blob/master/pkg/ha/ha_tracker.go#L411

This is where the ha_max_clusters limit getting applied. We can add a goroutine to periodically update tenant HA replica groups to metrics.

@7h3-3mp7y-m4n
Copy link

hey, can I pick this? Thanks!

@yeya24
Copy link
Contributor Author

yeya24 commented Dec 4, 2024

Sure, you can go ahead.

@7h3-3mp7y-m4n
Copy link

Thanks You @yeya24 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants