Files
grafana-terraform/environments/dev/adibrov/alerts/containers/container_oom.yaml
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

20 lines
694 B
YAML

name: "DEV ADIBROV - Container OOM Killed"
expression: |
increase(container_oom_events_total{job="cadvisor", name!=""}[5m])
threshold: 0
for: "1m"
condition_type: "gt"
need_reduce: true
reducer_type: "sum"
no_data_state: "OK"
exec_err_state: "Error"
labels:
service: "containers"
severity: "critical"
team: "infra"
summary: |
Контейнер {{ $labels.name }} убит OOM killer на {{ $labels.instance }}
description: |
Контейнер {{ $labels.name }} на {{ $labels.instance }} был убит ядром из-за нехватки памяти.
Нужно проверить лимиты памяти контейнера и текущее потребление.