Video in progress

If the monitoring system itself goes down, who detects it? How do you build "monitoring the monitoring"?

A monitoring system can't reliably watch itself from the inside, so you need an independent outside signal: an always-firing "dead man's switch" alert goes to an external service, and if it stops arriving, a person is notified. Every stage of the pipeline also sends its own metrics to an independent place.

📖 Answer

The most dangerous case is silence. If Prometheus or Alertmanager goes down, alerts simply don't arrive, and the team reads that as "everything is fine".

A dead man's switch is an alert in Prometheus that is always firing:

- alert: Watchdog
  expr: vector(1)
  labels:
    severity: none
  annotations:
    summary: "Alerting pipeline tirik"

Alertmanager sends it every few minutes to an external service (an on-call platform that accepts heartbeats, or a small service in another region). If the signal doesn't arrive for 10 minutes, the external service wakes the on-call. This one check covers the whole chain: scrape, rule evaluation, Alertmanager, the network.

Independence: the monitoring infrastructure must not be in the same failure domain as the system being monitored. If everything is in one Kubernetes cluster, monitoring goes down when the cluster goes down. So at least the meta-monitoring should be in a separate cluster or region, or in SaaS.

What to check in pipeline health:

  • up == 0 and scrape failures: did targets disappear;
  • prometheus_rule_evaluation_failures_total and rule evaluation delay;
  • alertmanager_notifications_failed_total: did the Slack or pager integration break;
  • the Collector's send_failed and queue filling up;
  • "data freshness": when did the last point of an important metric arrive, using absent_over_time or time() - timestamp(...).

Regular testing. The alert path breaks like code: someone changed a token, a routing rule is wrong. Once a month I schedule a synthetic test alert and check that it really reached the on-call phone. In game days we deliberately turn off Prometheus and see who finds out, and how fast.