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

Feature request: Being able to use logical OR in filters #6126

Open
tklausmann opened this issue Aug 8, 2024 · 1 comment
Open

Feature request: Being able to use logical OR in filters #6126

tklausmann opened this issue Aug 8, 2024 · 1 comment

Comments

@tklausmann
Copy link

As per the title: it would be nice to be able to filter alerts bu ORed fields. While this is possible on the Regex level (e.g. instance=~(foo|bar).*, this does not work when the criteria span fields, like instance=foo || alertname=bar (that notation is just an example, I have no strong feelings on what the actual syntax would look like).

@tentakle
Copy link

Also, I cannot create a filter instance=~"foo|bar" for an exact search of "foo" and "bar"; the search is performed as .*foo.*|.*bar.*. In Alertmanager this regex works.

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