Sending mail from via office365 with alternative from address

138 views
Skip to first unread message

Myocptest User

unread,
Feb 23, 2021, 11:12:14 AM2/23/21
to Prometheus Users
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 monitorin...@foo.com and monitorin...@foo.com
- 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

Myocptest User

unread,
Feb 27, 2021, 10:56:36 AM2/27/21
to Prometheus Users
Nobody any ideas or suggestions? 

Matthias Rampke

unread,
Mar 6, 2021, 4:13:12 AM3/6/21
to Myocptest User, Prometheus Users
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

--
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 prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/633c5200-a1c0-43ef-b33f-e21a422e6ec4n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages