[prometheus-users] Re: Alertmanager 0.23 API get silences filter

2024-01-08 Thread 'Brian Candler' via Prometheus Users
Please show the specific issue you're seeing: what the silence is, and what curl command line you're using to try to query it with. Note: the "regex" attribute is not referring to the API filter, it's an attribute of the silence itself. That is, the silence uses a regex when matching alert

[prometheus-users] Re: Alertmanager 0.23 API get silences filter

2024-01-08 Thread Barry
Since you received no replies to confirm and I'm seeing this issue myself... removing the quotes doesn't seem to make any difference. am I wrong in thinking maybe your GET works because the silence is constructed with regex whereas silences returning "isRegex":false cannot be queried with

[prometheus-users] Re: Alertmanager 0.23 API get silences filter

2021-09-27 Thread Brian Candler
Remove the outer double quotes for the =~ version as well. It works for me. For example, if I have a silence with "matchers":[{"isEqual":true,"isRegex":true,"name":"instance","value":"r[1-8]"}, ... then I can see it using either: curl -g