The most thorough way to do this is to set the environment as an external
label on your Prometheus servers. This will be passed to Alertmanager. If
you are using one AM cluster for all environments, make sure to group_by: [
'environment' ] in your routing configuration.

Then each alert group (the unit that an email is sent about) will have the
environment label as a common label, and ut will be part of the subject in
the default template.

/MR

On Sat, Feb 27, 2021, 16:56 Myocptest User <[email protected]> wrote:

> Nobody any ideas or suggestions?
>
> On Tuesday, February 23, 2021 at 5:12:14 PM UTC+1 Myocptest User wrote:
>
>> Gents,
>>
>> I'm trying to setup alertmanager within multiple aro environment.
>> However, I've on mail account for this available. Is it somehow possible to
>> have a alerts generated with either:
>> - an alternative from-address, for example [email protected] and
>> [email protected]
>> - a fixed string added in the subject
>>
>> This makes it easier for us to identify, which alert mails come from
>> which environment.
>>
>> Kind regards,  Ronald
>>
> --
> 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/633c5200-a1c0-43ef-b33f-e21a422e6ec4n%40googlegroups.com
> <https://groups.google.com/d/msgid/prometheus-users/633c5200-a1c0-43ef-b33f-e21a422e6ec4n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAMV%3D_gZvu1_vSDfoFnLzc6z%2BW5tPgQBRQ7RumyQypRGN_8eFBQ%40mail.gmail.com.

Reply via email to