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 regex?
On Monday, September 27, 2021 at 12:07:21 PM UTC-4 Brian Candler wrote:
> 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 'http://localhost:9093/api/v2/silences?filter=instance=~r[1-8]'
> or
> curl -g 'http://localhost:9093/api/v2/silences?filter=instance=~"r[1-8]"'
>
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/5ed70a25-0c8c-4028-9de8-78a26cceb35bn%40googlegroups.com.