Hi, I'm facing a similar problem and unfortunatelly I don't think that's possible.
Since every roule in the matchers list must be fullfilled you can use regex to perform a OR operation if multiple values are allowed for the same label. Something like:
matchers:
- team =~ "wmcs|.*something"
But in the case of different labels I did't found a way.
I'm actually requiring to group alerts that matches something like (field_a =~ "value_a1|value_a2" AND field_b = "value_b1") OR (field_a =~ "value_a3|value_a4" AND field_b = "value_b2"), but i cannot place 2 matchers in the same route neither all of them together. The closest I can get is with the following config, but combinations like field_a="value_a1" and field_b = "value_b2" will wrongly pass the filter.
matchers:
- field_a =~ "value_a1|value_a2|value_a3|value_a4"
- field_b =~ "value_b1|value_b2"
I'll test if making multiple routes, one with each configuration and ending up in the same receivers works out.
In your case it will be something like:
routes:
- receiver: A
- matchers:
- team = "wmcs"
- receiver: A
- matchers:
- team =~ ".*something"
But I dont think the alerts will be grouped into the same notification.
I'll keep this post updated, but any help from someone with more knowledge will be apreciated.
Regards,
Víctor Labayen.