sum by(alertname) (changes(ALERTS_FOR_STATE[24h])) this is giving me all the states. i need only like only how many alerts went to critical for last one week (already fired). need assist please.
thanks in advance
sum by(alertname) (changes(ALERTS_FOR_STATE[24h])) this is giving me all the states. i need only like only how many alerts went to critical for last one week (already fired). need assist please.
thanks in advance
The grafana alert engine publishes some internal metrics about itself, these metrics might help you to solve your requirement.
Description |
---|
Total number of alerts |
Alert execution result |
Notifications sent counter |
Alert execution timer |