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

Ruler: Reduce delay in syncing rules #9329

Open
stevesg opened this issue Sep 19, 2024 · 0 comments
Open

Ruler: Reduce delay in syncing rules #9329

stevesg opened this issue Sep 19, 2024 · 0 comments
Assignees

Comments

@stevesg
Copy link
Contributor

stevesg commented Sep 19, 2024

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

Grafana uses a combination of /ruler/api/v1/rules and /prometheus/api/v1/rules to show rule status. We would like to drop using /ruler/api/v1/rules because it can be very slow in the presence of many rule groups.

However that means we would like /prometheus/api/v1/rules to return a more slightly more consistent view of the configured rules. The syncing doesn't have to be immediate, a handful of seconds would be fine.

Describe the solution you'd like

The existing "Sync" mechanism in the ruler, which tells replicas to reload rule configurations is almost the whole solution. I'm proposing two tweaks to the rule syncing:

  • Allow configuration of the sync queue polling intervals
  • Only syncing groups known to have been changed (extending the sync queues to be e.g. map[tenant]map[group]).
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

1 participant