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

Limit alerts to multiple tags (using AND) #4703

Open
2 tasks done
fabian-zeindl-oebb opened this issue Feb 27, 2025 · 2 comments
Open
2 tasks done

Limit alerts to multiple tags (using AND) #4703

fabian-zeindl-oebb opened this issue Feb 27, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@fabian-zeindl-oebb
Copy link

Current Behavior

At the moment alerts can be limited to a set of tags. Projects need to have at least one of those tags so that the alert is triggered.

Proposed Behavior

Implement a switch "AllOf/AnyOf" that allows the tags to be combined using AND, so that alerts are only sent if ALL of the tags are present.

Checklist

@fabian-zeindl-oebb fabian-zeindl-oebb added the enhancement New feature or request label Feb 27, 2025
@stohrendorf
Copy link
Contributor

I am curious what your use-case is. In practice, you could add a tag that represents this AND condition. For example, if you have tags "prod" and "public", but don't want notifications for "prod" and "internal", you could just add a tag "notify" for the first case.

@fabian-zeindl-oebb
Copy link
Author

fabian-zeindl-oebb commented Mar 5, 2025

Indeed, the way alerting works now by selecting a tag, that makes it the "notify" tag, even if it is named differently, and it can not really serve another purpose.

If I use tags to describe my projects independent of the notifications, like what belongs to what team, what is deployed where and so on, I am free to configure and reconfigure my alerts in the future.

If I only had a fixed "notify" tag and wanted to change my alerting-logic, I would need to retag all projects.

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

No branches or pull requests

2 participants