Add monitoring stack (prometheus/alertmanager/grafana)
This commit is contained in:
28
monitoring/alertmanager/alertmanager.tmpl.yml
Normal file
28
monitoring/alertmanager/alertmanager.tmpl.yml
Normal file
@@ -0,0 +1,28 @@
|
||||
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: "${TELEGRAM_BOT_TOKEN}"
|
||||
chat_id: ${TELEGRAM_CHAT_ID}
|
||||
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
|
||||
{{- if .Env.TELEGRAM_THREAD_ID }}
|
||||
message_thread_id: ${TELEGRAM_THREAD_ID}
|
||||
{{- end }}
|
||||
Reference in New Issue
Block a user