Hi,

In Alertmanager 0.21 the following api request works great : 
/api/v2/silences?filter="alertname=~Memory.*"

The filter on a label with a "like" (~) works !

But in alertmanager 0.23, the same query returns : "bad matcher format: 
\"alertname=~Memory.*\""

I've found that the syntax have changed and with an equal filter it's ok 
without the " " in the query  : /api/v2/silences?filter=alertname=MemoryHost

But if i add a ~ in the query like  
/api/v2/silences?filter=alertname=~Memory.*  it returns "bad matcher 
format: \"alertname=~Memory.*\""

What is the syntax to get silences filter with a ~ ?

Thank you for your help

-- 
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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/dd33b658-52eb-4ddd-9aa2-3d8532088972n%40googlegroups.com.

Reply via email to