How can I send alerts with different labels to the same receiver in prometheus alert manager config?

Viewed 360

I need to route the alert to dev-receiver if it has the label dbinstance_identifier: '^(dev-db)$' or namespace: '^(dev)$. I don't think the below one works as the bottom one may override the top one. Can I put some or operator b/w two labels or something? Thanks in advance.

-receiver: 'dev-receiver'
    match_re:
       dbinstance_identifier: '^(dev-db)$'
- receiver: 'dev-receiver'
     match_re:
       namespace: '^(dev)$

0 Answers
Related