Files
Alexandr 5af763ebb1
Some checks failed
terraform-dev / validate (push) Successful in 6s
terraform-dev / plan (push) Failing after 11s
terraform-dev / apply (push) Has been skipped
feat: add postgres/gitea/blackbox alerts and more node alerts
2026-04-03 11:34:08 +03:00

22 lines
747 B
YAML

name: "DEV ADIBROV - High CPU Usage"
expression: |
(
1 - avg by(instance) (rate(node_cpu_seconds_total{job="node_exporter", mode="idle"}[5m]))
) * 100
threshold: 85
for: "5m"
condition_type: "gt"
need_reduce: true
reducer_type: "max"
no_data_state: "OK"
exec_err_state: "Error"
labels:
service: "system"
severity: "warning"
team: "infra"
summary: |
Высокая нагрузка CPU: {{ printf "%.0f" $values.B.Value }}% на {{ $labels.instance }}
description: |
Использование CPU на {{ $labels.instance }} превышает 85% на протяжении 5 минут.
Это может привести к деградации производительности всех сервисов на хосте.