monitoring: алерты через Alertmanager → Telegram (node down/cpu/mem/disk)
This commit is contained in:
21
stacks/monitoring/alertmanager/alertmanager.yml
Normal file
21
stacks/monitoring/alertmanager/alertmanager.yml
Normal 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 }}
|
||||
Reference in New Issue
Block a user