Files
grafana-terraform/environments/dev/adibrov/alerts/test/test_cpu_firing.yaml
Alexandr e95827b11f
All checks were successful
terraform-dev / validate (push) Successful in 6s
terraform-dev / plan (push) Successful in 12s
terraform-dev / apply (push) Has been skipped
feat: add test alert group with low thresholds for notification testing
2026-04-03 11:45:40 +03:00

22 lines
627 B
YAML

name: "DEV ADIBROV - TEST CPU > 2%"
expression: |
(
1 - avg by(instance) (rate(node_cpu_seconds_total{job="node_exporter", mode="idle"}[1m]))
) * 100
threshold: 2
for: "1m"
condition_type: "gt"
need_reduce: true
reducer_type: "max"
no_data_state: "OK"
exec_err_state: "OK"
labels:
service: "test"
severity: "info"
status: "test"
team: "infra"
summary: |
[TEST] CPU {{ printf "%.1f" $values.B.Value }}% на {{ $labels.instance }}
description: |
Тестовый алерт — срабатывает при CPU > 2%. Используется для проверки доставки уведомлений.