From 2e316813f58ff500f432c87c033ad5e095012129 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20K=C3=B6nig?= Date: Thu, 9 Jul 2026 21:11:03 +0200 Subject: [PATCH] render all grafana alert annotations in ntfy --- hosts/AZ-PRM-1/services/monitoring/alerting.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/hosts/AZ-PRM-1/services/monitoring/alerting.nix b/hosts/AZ-PRM-1/services/monitoring/alerting.nix index 0447457..7f6e5ac 100644 --- a/hosts/AZ-PRM-1/services/monitoring/alerting.nix +++ b/hosts/AZ-PRM-1/services/monitoring/alerting.nix @@ -260,11 +260,12 @@ in { {{ end -}} {{ with index $labels "severity" }}Severity: {{ . }} {{ end -}} - {{ with index .Annotations "summary" }}Summary: {{ . }} - {{ else }}{{ with index $.CommonAnnotations "summary" }}Summary: {{ . }} - {{ end }}{{ end -}} - {{ with index .Annotations "description" }}Details: {{ . }} - {{ else }}{{ with index $.CommonAnnotations "description" }}Details: {{ . }} + {{ with .Annotations.SortedPairs }}Annotations: + {{ range . }}- {{ .Name }}: {{ .Value }} + {{ end -}} + {{ else }}{{ with $.CommonAnnotations.SortedPairs }}Annotations: + {{ range . }}- {{ .Name }}: {{ .Value }} + {{ end -}} {{ end }}{{ end -}} {{ with .GeneratorURL }}Source: {{ . }} {{ end }}