21 lines
612 B
Django/Jinja
21 lines
612 B
Django/Jinja
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 %}
|