CAN we Trigger Alert if any match_re condition matches in Alertmanager?

304 views
Skip to first unread message

Shubham Choudhary

unread,
Jun 18, 2021, 4:41:28 PM6/18/21
to Prometheus Users
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.

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.
Reply all
Reply to author
Forward
0 new messages