add alert status to message [ci skip]
This commit is contained in:
parent
53d8b2d2c6
commit
46736680a6
1 changed files with 3 additions and 3 deletions
|
|
@ -50,8 +50,8 @@ alertmanager:
|
||||||
route:
|
route:
|
||||||
# group_by: ["alertname"]
|
# group_by: ["alertname"]
|
||||||
group_by: [] # disable grouping
|
group_by: [] # disable grouping
|
||||||
# group_wait: 3s
|
group_wait: 3s
|
||||||
# group_interval: 5s
|
group_interval: 5s # how long to wait before sending new alert for the same group
|
||||||
repeat_interval: 1h
|
repeat_interval: 1h
|
||||||
receiver: ALL
|
receiver: ALL
|
||||||
receivers:
|
receivers:
|
||||||
|
|
@ -64,7 +64,7 @@ alertmanager:
|
||||||
slack_configs:
|
slack_configs:
|
||||||
- send_resolved: true
|
- send_resolved: true
|
||||||
channel: "#general"
|
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: "{{ range .Alerts }}{{ .Annotations.description }}\n{{ end }}"
|
||||||
# text: "<!channel> {{ .CommonAnnotations.summary }}:\n{{ .CommonAnnotations.description }}"
|
# text: "<!channel> {{ .CommonAnnotations.summary }}:\n{{ .CommonAnnotations.description }}"
|
||||||
# web.external-url seems to be hardcoded, edited deployment manually
|
# web.external-url seems to be hardcoded, edited deployment manually
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue