Alert History (Show on Grafana Dashboard)

2,758 views
Skip to first unread message

Waravich Vipanichkarn

unread,
Aug 31, 2021, 2:27:49 AM8/31/21
to Prometheus Users
Sorry , Now I've got a question , If I want to list alerts history on grafana dashboard (This shows the history of all alerts) Do you have a dashboard template or any other solution?

There is a table showing the startdate and enddate of the alertmanager on table dashboard what should I do?


thanks.


Brian Candler

unread,
Aug 31, 2021, 3:33:00 AM8/31/21
to Prometheus Users
If you're talking about Prometheus alerting history, then it's stored in some special timeseries, ALERTS and ALERTS_FOR_STATE

You should be able to visualize those in Grafana just like any other timeseries.

If you're talking about Grafana alerting history, then that would be a question for a Grafana mailing list.

Message has been deleted

Brian Candler

unread,
Aug 31, 2021, 4:29:13 AM8/31/21
to Prometheus Users
This is a mailing list for Prometheus, not Grafana.  Grafana has its own forum at community.grafana.com.

On Tuesday, 31 August 2021 at 09:21:25 UTC+1 peachw...@gmail.com wrote:
Sorry , Now I've got a question , If I want to list alerts history on grafana dashboard (This shows the history of all alerts) Do you have a dashboard template or any other solution?

There is a table showing the startdate and enddate of the alertmanager on table dashboard what should I do?


Capture5.PNG


thanks.

ในวันที่ วันอังคารที่ 31 สิงหาคม ค.ศ. 2021 เวลา 14 นาฬิกา 33 นาที 00 วินาที UTC+7 Brian Candler เขียนว่า:

Stuart Clark

unread,
Aug 31, 2021, 4:40:38 AM8/31/21
to Waravich Vipanichkarn, Prometheus Users
There is a specific Grafana datasource for Alertmanager which might be
useful.

--
Stuart Clark

Brian Candler

unread,
Aug 31, 2021, 5:06:47 AM8/31/21
to Prometheus Users
On Tuesday, 31 August 2021 at 09:40:38 UTC+1 Stuart Clark wrote:
There is a specific Grafana datasource for Alertmanager which might be
useful.


Is that for the metrics returned by <alertmanager>:9093/metrics ?
 
If so, then that's mainly for aggregate alerting statistics ("how many notifications did I sent to pagerduty? What was the distribution of latencies?"), silences, and alertmanager's internal health (e.g. cluster gossip).

Stuart Clark

unread,
Aug 31, 2021, 5:09:42 AM8/31/21
to Brian Candler, Prometheus Users
No my understanding is that it uses the Alertmanager API and is
unrelated to metrics:
https://grafana.com/grafana/plugins/camptocamp-prometheus-alertmanager-datasource/

--
Stuart Clark

Brian Candler

unread,
Aug 31, 2021, 5:15:03 AM8/31/21
to Prometheus Users
Ah that's interesting, thanks.

I can see it would be useful for displaying current alerts and silences in Grafana, in the style of karma or alerta.  I don't expect it will retain much in the way of alert history though.
Reply all
Reply to author
Forward
0 new messages