add alert status to message [ci skip]

This commit is contained in:
Viktor Barzin 2025-01-02 21:13:09 +00:00
parent 53d8b2d2c6
commit 46736680a6

View file

@ -50,8 +50,8 @@ alertmanager:
route:
# group_by: ["alertname"]
group_by: [] # disable grouping
# group_wait: 3s
# group_interval: 5s
group_wait: 3s
group_interval: 5s # how long to wait before sending new alert for the same group
repeat_interval: 1h
receiver: ALL
receivers:
@ -64,7 +64,7 @@ alertmanager:
slack_configs:
- send_resolved: true
channel: "#general"
title: "{{ range .Alerts }}{{ .Annotations.summary }}\n{{ end }}"
title: "{{ range .Alerts }}[{{ toUpper .Status }}]{{ .Annotations.summary }}\n{{ end }}"
text: "{{ range .Alerts }}{{ .Annotations.description }}\n{{ end }}"
# text: "<!channel> {{ .CommonAnnotations.summary }}:\n{{ .CommonAnnotations.description }}"
# web.external-url seems to be hardcoded, edited deployment manually