Email Subject for alerts

18 views
Skip to first unread message

sri L

unread,
Nov 23, 2022, 4:07:17 AM11/23/22
to Prometheus Users
Hi all,
I want to add a label name in subject header. This is not a common label which we generally defined under target level. The label "name" is coming in metrics only and i want to see that "name" in email subject. Currently iam using this header value
[{{ .Status | toUpper }}] {{.CommonLabels.app_name}} {{.CommonLabels.hostname}}

can anyone please suggest here

Thanks
Reply all
Reply to author
Forward
0 new messages