Ah right, I wasn't aware of the new syntax (although match_re will still 
work)

There's an example of matchers with regular expression 
here: https://prometheus.io/docs/alerting/latest/configuration/#matcher

matchers:
  - '{quote=~"She said: \"Hi, all!( How're you…)?\""}'

> > Note also that "null" matches the exact string "null".  Is that what you
> > want?  In other words, have you set a label called "receiver" with value
> > "null" in your alerting rule?
> 
> yes. Those alerts I wish to send to /dev/null

Ah I see, it's because your formatting was broken in your original post.

You wrote:

- match:
replicaset: "data-sync.+"
receiver: "null"

I think you meant:

- match:
    replicaset: "data-sync.+"
  receiver: "null"

That is, you're not matching on a label called "receiver" with value 
"null"; you're setting the receiver to "null".  That's perfectly OK.

-- 
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/d63c3ac1-afdd-4195-81c4-4b73129a545cn%40googlegroups.com.

Reply via email to