Files
nix-config-ryan4yin/hosts/12kingdoms-youko/homelab-services/monitoring
Ryan Yin b063feca29 chore(youko): drop victoriametrics' leftover data-dir group
The data dir is the module's own DynamicUser StateDirectory (already
/var/lib/victoriametrics -> private/victoriametrics on youko), so the
victoriametrics-data group, its tmpfiles rule and SupplementaryGroups
did nothing. stateDir was set to its default.

Assisted-by: Claude Code (claude-opus-5-5)
2026-11-01 11:42:57 -06:00
..

Monitoring & Alerting

Alert Rules & Recording Rules

Backup Freshness

modules/nixos/base/restic-backup.nix writes restic_backup_last_success_timestamp_seconds to node_exporter's textfile collector after a successful run. alert_rules/restic-backup.yml alerts when it is older than two days (the schedule is daily) or absent entirely.

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.