Thanks for the update. A couple of minor notes:
- match_re:
instance: ~"A1,B2" #This is to include email-it in all alerts for multiple instances A1 and B2
Are you sure that's right? I think it should be
- match_re:
instance: A1|B2
Note that if you want to include alerts of *all* severity, then you don't need the "severity: critical|warning|high" condition. Just leave it out. Then you will match all alerts regardless of severity (even no severity set).
Incidentally, there's a new
matcher syntax which is more like normal PromQL label matching:
- matchers:
- 'instance =~ "A1|B2"'
match and match_re are deprecated in favour of this, although I don't expect they'll be removed for a long time, if ever.