--- groups: - name: system.rules rules: - alert: HostDown expr: up == 0 for: 2m labels: {severity: critical} annotations: summary: "Хост {{ $labels.instance }} недоступен" - alert: HighCPULoad expr: avg by (instance)(rate(node_cpu_seconds_total{mode!="idle"}[5m])) > 0.90 for: 10m labels: {severity: warning} annotations: summary: "Высокая загрузка CPU на {{ $labels.instance }}" - alert: LowDiskSpace expr: (node_filesystem_avail_bytes{fstype!~"tmpfs|overlay"} / node_filesystem_size_bytes{fstype!~"tmpfs|overlay"}) < 0.10 for: 5m labels: {severity: critical} annotations: summary: "Мало места на {{ $labels.instance }} {{ $labels.mountpoint }}"