Skip to content

Commit

Permalink
Fix default template
Browse files Browse the repository at this point in the history
* Range over alerts.
* Add a newline for each alert.

[patch]

Signed-off-by: Ben Kochie <superq@gmail.com>
  • Loading branch information
SuperQ committed Feb 2, 2020
1 parent 0447ecd commit 4cdbf9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ alertmanager_irc_relay_irc_nickname_password: ""
alertmanager_irc_relay_irc_realname: ""

alertmanager_irc_relay_notice_once_per_alert_group: "yes"
alertmanager_irc_relay_notice_template: "{% raw %}Alert {{ .Labels.alertname }} on {{ .Labels.instance }} is {{ .Status }}{% endraw %}"
alertmanager_irc_relay_notice_template: "{% raw %}{{ range .Alerts }}Alert {{ .Labels.alertname }} on {{ .Labels.instance }} is {{ .Status }}\n{{ end }}{% endraw %}"

alertmanager_irc_relay_channels: []

0 comments on commit 4cdbf9b

Please sign in to comment.