How to display the total number of alerts in Grafana

Hello,

Is there a way to display total number of alerts in grafana.
Currently I am using Stack-driver (GCP). as datasource and created dashboards and alerting on dashboard.
I am able to create list of alerts by using alert visualization, but is there a way to display total number of alerts that fired?

Thank you!

@gopichandh you can retrieve the alert total by counting the objects returned from the api/alerts endpoint like this:

curl https://play.grafana.org/api/alerts | jq '. | length'

You can then use a JSON datasource plugin like this to draw that data into Grafana:

This topic was automatically closed after 365 days. New replies are no longer allowed.