Files
nix-config/hosts/12kingdoms-youko/homelab-services/monitoring/README.md
T

1.3 KiB

Monitoring & Alerting

Alert Rules & Recording Rules

TODO

  • Dead-man switch: Watchdog in alert_rules/general.yml always fires (vector(1)) but is routed to the null receiver in alert.nix, so a dead alerting pipeline looks identical to a healthy one. Route it to an external heartbeat service (healthchecks.io, Uptime Kuma, PagerDuty DeadMansSnitch) that notifies when the heartbeat stops, or run an out-of-band probe against Alertmanager.
  • Backup freshness: nothing alerts on "no recent successful backup". The systemd failed state only catches crashes, not a job that never ran or a backup that is silently stale. Export the last successful backup timestamp (the restic rest-server already exposes Go/promhttp metrics; btrfs snapshot time via the node-exporter textfile collector) and alert when it exceeds the SLO. Off-host copies are already restic's job (see BACKUP.md), so no btrbk target is needed.