Pcornel
Observability · Grafana

Grafana Alerting

Cheat sheet · https://pcornel.dk/topic.php?topic=6220

Back to the Topic

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 topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool 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

Confirmation

Confirm action

Continue?