On 30.08.21 13:35, Brian Candler wrote:
"match" matches exact strings.  You need "match_re" if you want to match regular expressions.

thank you

from docs:

# DEPRECATED: Use matchers below.
# A set of regex-matchers an alert has to fulfill to match the node.
match_re:

I need this?

# A list of matchers that an alert has to fulfill to match the node.
matchers:
  [ - <matcher> ... ]


can you give me an example?

that's why I was confused

See the documentation here: https://prometheus.io/docs/alerting/latest/configuration/#route and also the interactive testing tool here: https://prometheus.io/webtools/alerting/routing-tree-editor/

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

kind regards
Evelyn

--
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/7f2df399-ad39-3552-8668-7815b230f005%40disroot.org.

Attachment: OpenPGP_0x61776FA8E38403FB.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to