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

Send Ruler namespace information to Alertmanager #6210

Open
kyo-ke opened this issue Sep 13, 2024 · 2 comments
Open

Send Ruler namespace information to Alertmanager #6210

kyo-ke opened this issue Sep 13, 2024 · 2 comments

Comments

@kyo-ke
Copy link

kyo-ke commented Sep 13, 2024

Is your feature request related to a problem? Please describe.
We are using Ruler namespace to group alerting rules.
Sometimes we want to silence alert only in specific namespace.
Problem is Ruler do not send namespace to Alertmanager.

Describe the solution you'd like
Add "namespace" label to alert rule on Ruler side.
Create configuration option for this functionality.
By this user can silence alert based on this label.

we are happy to create PR for this.

@yeya24
Copy link
Contributor

yeya24 commented Sep 13, 2024

If you add namespace label to your rules it should accomplish the same thing.
Since Cortex rules are managed by APIs, what the blocker to configure it yourself?

@kyo-ke
Copy link
Author

kyo-ke commented Sep 13, 2024

Thank you for quick response @yeya24
Yes, that is what we are doing now.
But, in my opinion, namespace is already in API path so adding namespace label to each alert rule is redundant.
Think it is useful to send this label automatically.

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

No branches or pull requests

2 participants