Pcornel
Observability

Alerting

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

Back to the Topic

Answer

Alerting turns telemetry into notifications when conditions need human action, through rules, routing, grouping and on-call channels.

Remember

Alert on symptoms that need action now; send causes to dashboards or tickets. Every alert needs an owner and a runbook. Use for: to avoid flapping.

First checks

  • curl -s localhost:9090/api/v1/alerts — 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 evaluates → pending → firing → Alertmanager routes → notification → runbook

Where it usually breaks

Failures include noisy static thresholds, alerts on missing telemetry without distinguishing collector outage, label churn creating duplicate alerts, routing loops, broad silences and alerts that name a symptom but give no owning service or verification link.

Alerting verification boundary matrix

BoundaryInspectHealthy interpretationDo not infer
IntentThresholdsIntended object/scope is explicit and versioned where relevantIntent is already effective
Owning runtime/control planeRate-of-change and absence alerts / DeduplicationOwner accepts and reports the expected object stateDownstream dependencies are healthy
Effective stateGroupingIndependent read-back matches the intended stateEvery client sees the same result
Consumer outcomeInhibition/silencingThe original bounded check succeeds in the same time windowProduction correctness outside this scope

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6107

Confirmation

Confirm action

Continue?