From 455d6ca64e692cc6730772b302bc31c441456fe9 Mon Sep 17 00:00:00 2001 From: Maxime Wojtczak Date: Sun, 1 Jan 2023 20:09:43 +0100 Subject: [PATCH] fix: update default template --- VERSION | 2 +- description-template.tpl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index f0bb29e..3a3cd8c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.0 +1.3.1 diff --git a/description-template.tpl b/description-template.tpl index af9d1c2..2016df5 100644 --- a/description-template.tpl +++ b/description-template.tpl @@ -1,9 +1,9 @@ {{- if .Alerts -}} -{{- range $severity, $alerts := (groupAlertsByLabel .Alerts "severity") -}} -Status: {{ $severity }} - {{ len .Alerts }}/{{ len .DeclaredAlerts }} are firing: +{{ range $severity, $alerts := (groupAlertsByLabel .Alerts "severity") -}} +Status: {{ $severity }} + {{- range $index, $alert := $alerts }} - Alert: {{ $alert.Labels.alertname }} Summary: {{ $alert.Annotations.summary }}