Files
sendico/infra/monitoring/vault-agent/templates/alertmanager.yml.ctmpl
2026-03-10 21:45:41 +03:00

19 lines
793 B
Plaintext

route:
receiver: 'telegram'
group_by: ['alertname', 'instance']
group_wait: 30s
group_interval: 5m
repeat_interval: 3h
receivers:
- name: 'telegram'
telegram_configs:
- bot_token: '{{ with secret "kv/data/monitoring/telegram" }}{{ .Data.data.token }}{{ end }}'
chat_id: {{ with secret "kv/data/monitoring/telegram" }}{{ .Data.data.admin_chat_id }}{{ end }} # put your numeric chat id here, or also render from Vault if you want
message: |
🚨 *{{ "{{ .Status | toUpper }}" }}* — {{ "{{ .CommonLabels.alertname }}" }}
*Instance:* {{ "{{ .CommonLabels.instance }}" }}
*Summary:* {{ "{{ .CommonAnnotations.summary }}" }}
*Description:* {{ "{{ .CommonAnnotations.description }}" }}
parse_mode: 'Markdown'