Add alert manager and telegram notifications
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user