monitoring: алерты через Alertmanager → Telegram (node down/cpu/mem/disk)

This commit is contained in:
Ruslan Gilfanov
2026-06-21 19:34:39 +03:00
parent 75d00cc400
commit b2d04e0573
5 changed files with 83 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
global:
resolve_timeout: 5m
route:
receiver: telegram
group_by: ['alertname', 'instance']
group_wait: 30s
group_interval: 5m
repeat_interval: 3h
receivers:
- name: telegram
telegram_configs:
- bot_token_file: /etc/alertmanager/telegram_token
chat_id: 607015
parse_mode: HTML
send_resolved: true
message: |
{{ if eq .Status "firing" }}🔴{{ else }}✅{{ end }} <b>{{ .CommonLabels.alertname }}</b> [{{ .Status | toUpper }}]
{{ range .Alerts }}{{ .Annotations.summary }}
{{ end }}