Setting only Alertname and Instance as Subject for Email Notification.

77 views
Skip to first unread message

yagyans...@gmail.com

unread,
Dec 22, 2020, 3:38:21 AM12/22/20
to Prometheus Users
Hi. I am using Alertmanager v 0.21.0. I want to define a custom email template where in the subject of the email I don't get all the labels, but instead only want to print the alert name and the instance. Is it possible? I went through a bunch of documents but couldn't narrow down the labels in the subject.

Thanks in advance!

Yagyansh S. Kumar

unread,
Jul 13, 2021, 12:12:10 PM7/13/21
to sadhana B, Prometheus Users
Hi Sadhana,

You can use group_by feature in the Alertmanager's config file or you can drop the unwanted labels in the alert rule itself. 

On Tue, 13 Jul, 2021, 8:38 pm sadhana B, <sadhana...@gmail.com> wrote:
HI,

Any solution for this?

On Tue, Dec 22, 2020 at 3:38 AM yagyans...@gmail.com <yagyans...@gmail.com> wrote:
Hi. I am using Alertmanager v 0.21.0. I want to define a custom email template where in the subject of the email I don't get all the labels, but instead only want to print the alert name and the instance. Is it possible? I went through a bunch of documents but couldn't narrow down the labels in the subject.

Thanks in advance!

--
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/bba00a74-cf39-451a-8c19-81365ec97fd4n%40googlegroups.com.


--
Thanks,

Reply all
Reply to author
Forward
0 new messages