Observability · Grafana
Grafana Alerting
Cheat sheet · https://pcornel.dk/topic.php?topic=6220
Answer
Grafana Alerting evaluates alert rules over any data source and sends notifications through contact points and notification policies.
Remember
Choose one alerting system per signal to avoid duplicates. Provision rules as code. Configure no-data and error handling explicitly.
First checks
curl -s http://grafana/api/prometheus/grafana/api/v1/rules— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
Verify in this order
rule query → condition → state → notification policy → contact point
Where it usually breaks
A rule with "no data" handling set wrongly fires on every data source glitch.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6220