monitoring: dead-man's switch does not cover Alertmanager death or total delivery failure #595
Etiketter
Inga etiketter
area/backups
area/ci
area/control-panel
area/identity
area/infra
area/observability
area/payments
area/security
area/storage
area/web
blocked
needs-info
needs-triage
priority
high
priority
low
priority
medium
ready-for-implementation
type
bug
type
chore
type
docs
type
epic
type
feature
type
task
wontfix
Ingen milstolpe
Inget projekt
Inga tilldelade
1 deltagare
Notiser
Förfallodatum
Inget förfallodatum satt.
Beroenden
Inga beroenden satta
Referens
bitborg/bitborg-infra#595
Läser in…
Hänvisa till i nytt ärende
Ingen beskrivning angiven.
Ta bort grenen "%!s()"
Borttagning av en gren är permanent. Även om den borttagna grenen kan fortsätta existera en kort tid innan den faktiskt tas bort, kan det INTE ångras i de flesta fall. Vill du fortsätta?
Nothing outside the monitoring VM notices if alerting itself stops.
The always-firing
Watchdogalert routes to receiverwatchdog, which has no integration (alertmanager.yml.j2, "Dead-man's-switch sink"). If Alertmanager, vmalert or the whole monitoring VM dies, every alert stops and nobody is told. #565 showed the cost: notifications failed silently for weeks.AlertmanagerDeliveryFailingcovers partial failure only. When every integration fails, it cannot reach anyone either.Goal
A monitor outside the monitoring VM expects a regular Watchdog heartbeat and alerts on silence through a path that does not depend on Alertmanager.
Options
Watchdog, or receives its webhook, and emails through the existing mail provider when the heartbeat is missing. No new service. Blind if both hosts die.Tasks
watchdogreceiver, and the monitor with its silence threshold (about 2 to 3 Watchdog repeat intervals). (dropped: option 1 was chosen, the existing probe polls the Alertmanager API)Related: #565, #461.
monitoring: alert when the Watchdog heartbeat stops (external dead-man's switch)till monitoring: dead-man's switch does not cover Alertmanager death or total delivery failureRescoped. An independent dead-man's switch already runs.
bitborg-monitoring-probeon the services host checks VictoriaMetrics andALERTS{alertname="Watchdog"}every 2 min and mails through Sweego directly, bypassing Alertmanager (runbook, monitoring probe section). Option 1 is therefore in place.Remaining gaps:
Fix: extend the probe with an Alertmanager-up and delivery-failure check, plus a staleness rule for its metric.
Accepted limit: both hosts down at once is not covered. An external heartbeat would need a Swedish-hosted service. Not worth it now.
The
watchdogreceiver comments that mention an external dead-man's switch are corrected in the same change.Verified live on 2026-10-18. After the #772 apply,
alertmanager.serviceon the monitoring VM was stopped at 10:02 CEST. The probe logged BAD 1/3 and 2/3, then mailed "alertmanager DOWN" on the third run. After a restart it mailed "alertmanager RECOVERED".bitborg_monitoring_alertmanager_upwent 1, 0, 1.