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

Do not allow adding static labels which are already part of query grouping #6967

Open
srikanthccv opened this issue Jan 29, 2025 · 0 comments
Labels
alerts bug Something isn't working

Comments

@srikanthccv
Copy link
Member

srikanthccv commented Jan 29, 2025

When a rule has static labels that conflict with labels from the query result, the rule fails with the error "vector contains metrics with the same labelset after applying alert labels". Do not allow creating such alerts.

How to reproduce:

Use/Create any alert with the group by, add a static label with the group by key and run test notification.

@srikanthccv srikanthccv added alerts bug Something isn't working labels Jan 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
alerts bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant