# How to build a dashboard to record alert firing per minutes and mainly alert info

**URL:** <https://community.grafana.com/t/how-to-build-a-dashboard-to-record-alert-firing-per-minutes-and-mainly-alert-info/130211>\
**Category:** Grafana\
**Tags:** alert-rule, alerting\
**Created:** [September 3, 2024, 9:37am UTC](https://community.grafana.com/t/how-to-build-a-dashboard-to-record-alert-firing-per-minutes-and-mainly-alert-info/130211 "2024-09-03T09:37:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![zpzkit](https://avatars.discourse-cdn.com/v4/letter/z/b3f665/32.png) [@zpzkit](https://community.grafana.com/u/zpzkit)\
**Post date:** [September 3, 2024, 9:37am UTC](https://community.grafana.com/t/how-to-build-a-dashboard-to-record-alert-firing-per-minutes-and-mainly-alert-info/130211/1 "2024-09-03T09:37:09Z")

</div>

I already have some alert on Grafana. I want to statistic the alert frequency. And main alert info.  
I found a screenshot on Grafana Blog like below. How can I generate the dashboard like the screenshot. My grafana service wasn’t use Grafana cloud. Thanks.

 ![Snipaste_2024-09-03_13-31-41](https://us1.discourse-cdn.com/grafana/original/3X/4/8/483fce43c9721f3d1ca71b020b4a88465000db3f.jpeg)

Image URL: [Grafana alert state history: What's new and improved in Grafana 10](https://grafana.com/blog/2023/07/10/how-we-improved-grafanas-alert-state-history-to-provide-better-insights-into-your-alerting-data/)

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [September 3, 2024, 10:08am UTC](https://community.grafana.com/t/how-to-build-a-dashboard-to-record-alert-firing-per-minutes-and-mainly-alert-info/130211/2 "2024-09-03T10:08:08Z")

</div>

Enable alert state history:

> **[Configure alert state history | Grafana documentation](https://grafana.com/docs/grafana/latest/alerting/set-up/configure-alert-state-history/)**
>
> Configure alert state history to explore the behavior of your alert rules

and then use LogQL on top of your alert history in Loki to generate metric `alert firing per minutes`.

---

<div class="post-metadata">

**Author:** ![zpzkit](https://avatars.discourse-cdn.com/v4/letter/z/b3f665/32.png) [@zpzkit](https://community.grafana.com/u/zpzkit)\
**Post date:** [September 4, 2024, 5:48am UTC](https://community.grafana.com/t/how-to-build-a-dashboard-to-record-alert-firing-per-minutes-and-mainly-alert-info/130211/3 "2024-09-04T05:48:33Z")

</div>

Thanks your replyment.  
I have another question.  
Can Grafana alert to call external URL when firing and resolved alert?  
We want to receive the alert info and build ourslef system. Thanks.

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [September 4, 2024, 7:16am UTC](https://community.grafana.com/t/how-to-build-a-dashboard-to-record-alert-firing-per-minutes-and-mainly-alert-info/130211/4 "2024-09-04T07:16:06Z")

</div>

Check webhook type contact point.

---

<div class="post-metadata">

**Author:** ![zpzkit](https://avatars.discourse-cdn.com/v4/letter/z/b3f665/32.png) [@zpzkit](https://community.grafana.com/u/zpzkit)\
**Post date:** [September 5, 2024, 2:02pm UTC](https://community.grafana.com/t/how-to-build-a-dashboard-to-record-alert-firing-per-minutes-and-mainly-alert-info/130211/5 "2024-09-05T14:02:35Z")

</div>

I am a newer Grafana.  
Are there any more detailed tutorials?  
I didn’t understand the Loki and Grafana relationship.  
I can find alert history. How to use LogQL to query?

---

<div class="post-metadata">

**Author:** ![jangaraj](https://sea2.discourse-cdn.com/grafana/user_avatar/community.grafana.com/jangaraj/32/39197_2.png) [@jangaraj](https://community.grafana.com/u/jangaraj)\
**Post date:** [September 5, 2024, 3:11pm UTC](https://community.grafana.com/t/how-to-build-a-dashboard-to-record-alert-firing-per-minutes-and-mainly-alert-info/130211/6 "2024-09-05T15:11:17Z")

</div>

It is a good idea to check doc, when you are not familiar with terms, e. g.

> **[LogQL: Log query language | Grafana Loki documentation](https://grafana.com/docs/loki/latest/query/)**
>
> Provides a reference topic for LogQL, Loki's query language for logs.

---

<div class="post-metadata">

**Author:** ![zpzkit](https://avatars.discourse-cdn.com/v4/letter/z/b3f665/32.png) [@zpzkit](https://community.grafana.com/u/zpzkit)\
**Post date:** [September 10, 2024, 2:55pm UTC](https://community.grafana.com/t/how-to-build-a-dashboard-to-record-alert-firing-per-minutes-and-mainly-alert-info/130211/7 "2024-09-10T14:55:47Z")

</div>

Thanks your reply.
