"match" matches exact strings. You need "match_re" if you want to match regular expressions.
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? On Monday, 30 August 2021 at 08:31:59 UTC+1 Evelyn Pereira Souza wrote: > Hi > > routes: > - match: > channel: iii > receiver: yyy > # mute_time_intervals: > # - Maintenance > - match: > cluster: devtest > receiver: "null" > - match: > cluster: poc > receiver: "null" > (...) > - match: > pod: "batch.+" > receiver: "null" > - match: > replicaset: "data-sync.+" > receiver: "null" > - match: > deployment: data-sync > receiver: "null" > > The wildcards (example data-sync.+ and batch.+) not working. Only static > values working. > > 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/f991f07e-a0a3-4c67-90aa-d4e6bc6cbd2cn%40googlegroups.com.

