Fix alertmanager config rendering

This commit is contained in:
g4st3r
2026-03-07 20:04:56 +00:00
parent 403f33e2bb
commit b0f2009ccf
2 changed files with 26 additions and 3 deletions

View File

@@ -0,0 +1,25 @@
global:
resolve_timeout: 5m
route:
receiver: telegram
group_by: ['alertname', 'instance']
group_wait: 30s
group_interval: 5m
repeat_interval: 6h
receivers:
- name: telegram
telegram_configs:
- bot_token: '7896670660:AAGtfYPY47GfEhFLQeAR5oRGodV7Y6qa_LY'
chat_id: -1003779247128
message: |-
{{ range .Alerts }}
*{{ .Labels.alertname }}* ({{ .Labels.severity }})
{{ .Annotations.summary }}
{{ .Annotations.description }}
{{ end }}
parse_mode: Markdown
disable_notifications: false
api_url: 'https://api.telegram.org'
send_resolved: true