mailing to differernt groups

8 views
Skip to first unread message

prabin jain

unread,
Jul 31, 2020, 3:42:32 AM7/31/20
to Prometheus Developers
how can we mail to different group of people depending on the application for which alert has been raised

Christian Hoffmann

unread,
Aug 1, 2020, 4:05:24 AM8/1/20
to prabin jain, Prometheus Developers
Hi,

On 7/31/20 9:42 AM, prabin jain wrote:
> how can we mail to different group of people depending on the
> application for which alert has been raised

You will need some way to discern different applications, e.g. it should
be a label or part of the alertname. Then, you can route based on this
label.

https://prometheus.io/docs/alerting/latest/configuration/#route

Another approach is encoding details about the receivers directly into
the alerts as described here:

https://www.robustperception.io/using-labels-to-direct-email-notifications


Kind regards,
Christian
Reply all
Reply to author
Forward
0 new messages