monitoring: alert when the services-host agent goes silent #605
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#605
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?
What
Most staleness rules have the form
time() - metric > N. They return nothing when the series is absent. OnlyBackupHotStaleusesabsent()(alert-rules.yml.j2:245).ScrapeTargetDownisup == 0(:663). Theupseries for the services host comes from the services-host vmagent.Extends #595, which covers only the Watchdog heartbeat.
Why
If that one agent stops, nearly every rule from that host goes quiet instead of firing. The cross-probe checks the monitoring VM from the services host, not the reverse. Only the blackbox endpoint probes keep working.
vmagent,alloyandnode-exporterare not inmonitoring_core_unitseither.Failing case
vmagent crash-loops, or remote_write fails, or node-exporter stops.
BackupStale,ReconcilerStale,RegistryRetentionStaleandUnitMetricStaleall evaluate to empty. No alert fires. The operator learns about a failed backup from a user.Fix
Add
absent(up{job="node",host="<services host label>"})for 10m at critical severity.monitoring_host_labelhas different values in the monitoring and monitoring-agent role defaults, so use one variable. Addabsent()to the other staleness rules where a missing series should alert. Consider adding the three agent units tomonitoring_core_units.Done when
for:window.absent()or is covered by the new rule.scripts/check-alert-rules.pypasses.