Adding timestamp in Alertmanager/ Prometheus for alerts.

181 views
Skip to first unread message

Grafana Testing

unread,
Jun 17, 2021, 12:16:47 PM6/17/21
to Prometheus Users
Hi, All,

I want to get the first failure time of the alerts firing in the prometheus using alertmanager at the subject level and using prometheus email body level. I have tried few ways using the below code snippets one's 
  • {{ .StartsAt }} --> getting error if I use it individually in the subject 
  • {{ range .Alerts }}{{ .StartsAt }}\n{{ end }} --> Getting multiple timestamp at a time in the alert email header.

Could anyone pelase help me with soultion.
Reply all
Reply to author
Forward
0 new messages