Add alert manager and telegram notifications

This commit is contained in:
Leo
2026-09-23 17:01:25 +05:00
parent f457c51dcb
commit 20e498e885
14 changed files with 110 additions and 24 deletions
+20
View File
@@ -0,0 +1,20 @@
route:
receiver: 'telegram'
group_wait: 30s
repeat_interval: 1h
receivers:
- name: 'telegram'
telegram_configs:
- bot_token: "{{ telegram_bot_token }}"
chat_id: {{ telegram_chat_id }}
message: >-
{% raw %}
{{ if eq .Status "firing" }}🔥{{ else }}✅{{ end }}
*{{ .GroupLabels.alertname }}*
{{ range .Alerts }}
*Сервер:* `{{ .Labels.instance }}`
*Статус:* {{ .Status }}
*Описание:* {{ .Annotations.description }}
{{ end }}
{% endraw %}