*Alertmanager* > *routes* > *match_re* > *CAN we Trigger Alert if any *
*match_re* *condition matches?*

I have two kinds of alerts;

   - 1st one has *namespace* label but doesn't *team_tag* label
   - 2nd one has *team_tag* label but doesn't have *namespace* label

I want to catch both kinds of alerts in *ONE* receiver. The below route is 
just for one team like this we have N teams.

[image: alert.png]

Thought possible solution

   1. I can add two *receivers* pointing to same the same endpoint(slack 
   channel/teams/email...) and use them to check separately once for 
   *namespace* and once for *team_tag*. But this will result in duplication.
   2. I can maybe use *alert_relabel_configs* on the Prometheus side to 
   inject dummy values either when *namespace* or *team_tag* is missing and 
   append that dummy value to in above regex. But this will increase 
   complexity on others.

-- 
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/c51e2a1f-6eae-48ce-940f-be95858611d2n%40googlegroups.com.

Reply via email to