server-monitoring/alertmanager/alertmanager.yml.tpl
ShiZa039 74b6f92cb8 Стек мониторинга: Prometheus + Alertmanager + Grafana + node_exporter + cAdvisor
Самодостаточный docker compose стек с деплоем через deploy.sh,
bootstrap-установкой с нуля и конфигурацией через .env.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-23 12:54:40 +02:00

24 lines
895 B
Smarty
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Шаблон: entrypoint.sh рендерит его в /tmp/alertmanager.yml при старте контейнера.
# Строки с префиксом #TG# включаются, только если заданы TG_BOT_TOKEN и TG_CHAT_ID.
route:
receiver: __DEFAULT_RECEIVER__
group_by: ['alertname', 'server', 'instance']
group_wait: 30s
group_interval: 5m
repeat_interval: 4h
# critical глушит warning того же алерта (например, DiskFull 95% глушит 85%)
inhibit_rules:
- source_matchers: ['severity = critical']
target_matchers: ['severity = warning']
equal: ['alertname', 'server', 'instance', 'mountpoint']
receivers:
- name: blackhole
#TG# - name: telegram
#TG# telegram_configs:
#TG# - bot_token: '__TG_BOT_TOKEN__'
#TG# chat_id: __TG_CHAT_ID__
#TG# parse_mode: 'HTML'
#TG# send_resolved: true