mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:46 +01:00
1.3 KiB
1.3 KiB
Monitoring & Alerting
Alert Rules & Recording Rules
- awesome-prometheus-alerts
- Collection of Prometheus alerting rules.
- victoria-metrics-k8s-stack/files/rules
- Alert Rules & Recording Rules used by kube-prometheus-stack.
TODO
- Dead-man switch:
Watchdoginalert_rules/general.ymlalways fires (vector(1)) but is routed to thenullreceiver inalert.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
failedstate 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 (seeBACKUP.md), so no btrbktargetis needed.