Replies: 1 comment
-
I think that isRegex only relates to how the silence is used to match alerts, not how you can filter silences in the api. That said, I have a similar issue, being unable to use regex queries after upgrading from 0.21.0. Previously filter=host=~"A|B|C" worked fine for listing silences belonging to all of the hosts, but with 0.-22.0 only empty response. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I query a silence through the api I notice "isRegex":false being returned if it was created on an exact label value.
Does this mean there is no way to query with regex and include the silence?
looking to match host=~dcc-.* and get hundreds of silences returned with this hostname prefix that were created in order to expire them all.
curl -g 'http://alertmanager:9093/api/v2/silences?filter=host=~"dcc-.*"'
returns nothing.
Beta Was this translation helpful? Give feedback.
All reactions