Files
nix-config-ryan4yin/hosts/12kingdoms-youko/homelab-services/monitoring/alert_rules
Ryan Yin 9b68cfdb8a feat(backup): alert when the last successful backup goes stale
The backup unit publishes `restic_backup_last_success_timestamp_seconds` for the node_exporter textfile collector, and a rejected alert now fails the notify unit instead of exiting 0.

Assisted-by: DeepSeek Harness 0.2.1-rc.2 (deepseek-flash)
2026-10-22 00:54:27 +08:00
..

Alert Rules

Alert rules are configurations that define conditions, scope, and actions for generating alerts from monitored signals, such as metrics, logs, or activity. When an alert rule's defined conditions are met for a specific resource within its scope, the system generates a triggered alert, which is the actual instance of the condition being met. These rules specify the data to monitor, the trigger threshold, and the resulting actions, like sending notifications to specific receivers or performing automated tasks.

How these files are loaded

../alert.nix passes every *.yml and *.yaml in this directory to vmalert as a rule file; other extensions are ignored. One rule group per file is easiest to review.