fix(monitoring): copy alerts.yml without jinja2 templating
ansible-core-mon / deploy (push) Successful in 1m8s
ansible-core-net / deploy (push) Successful in 18s

This commit is contained in:
karpenok committed 2026-11-11 16:08:38 +07:00
1 parent 2445df7146
commit 065c47aee2
11 files changed
+12 -2

No files matched your search

@@ -0,0 +1,38 @@
groups:
- name: homelab_alerts
rules:
- alert: HostDown
expr: up == 0
for: 2m
labels:
severity: critical
annotations:
summary: "Сервис или узел {{ $labels.instance }} недоступен"
description: "Экспортер {{ $labels.instance }} (job={{ $labels.job }}) не отвечает более 2 минут."
- alert: HostDiskSpaceLow
expr: (node_filesystem_avail_bytes{mountpoint="/"} / node_filesystem_size_bytes{mountpoint="/"}) * 100 < 15
for: 5m
labels:
severity: warning
annotations:
summary: "Мало свободного места на {{ $labels.instance }}"
description: "На корневом разделе осталось менее 15% свободного места."
- alert: HostHighCpuLoad
expr: 100 - (avg by (instance) (rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100) > 90
for: 10m
labels:
severity: warning
annotations:
summary: "Высокая нагрузка CPU на {{ $labels.instance }}"
description: "Утилизация CPU превышает 90% более 10 минут."
- alert: HostHighMemoryUsage
expr: (1 - (node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes)) * 100 > 90
for: 10m
labels:
severity: warning
annotations:
summary: "Мало оперативной памяти на {{ $labels.instance }}"
description: "Использование RAM превышает 90% более 10 минут."