I have tested the multiple routes option. 
The alerts are sent separatelly although the receivers are the same.
I think the only way to achieve this in alertmanager is by adding a new 
field to your alerts. Something as ugly as:

routes:
  - receiver: A
  - matchers:
    - is_team_wmcs_or_subject_something : "true"

Regards, 
Víctor Labayen.

El miércoles, 9 de marzo de 2022 a las 17:54:29 UTC+1, Brian Candler 
escribió:

> On Wednesday, 9 March 2022 at 08:37:43 UTC victor labayen wrote:
>
>> 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:
>>
>     - subject =~ ".*something"
>>
>>
> That should be fine.  I don't think it will affect grouping, but if your 
> testing shows otherwise, please let us know.
>

-- 
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/6a36b88d-4ea2-44d4-a74c-98a7963a01f1n%40googlegroups.com.

Reply via email to