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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.