From b8cd1c421c817fa091b15ca9ebf017d39237f876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20K=C3=B6nig?= Date: Thu, 9 Jul 2026 21:04:46 +0200 Subject: [PATCH] include grafana alert annotations in ntfy messages --- hosts/AZ-PRM-1/services/monitoring/alerting.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/AZ-PRM-1/services/monitoring/alerting.nix b/hosts/AZ-PRM-1/services/monitoring/alerting.nix index 8dd885e..0447457 100644 --- a/hosts/AZ-PRM-1/services/monitoring/alerting.nix +++ b/hosts/AZ-PRM-1/services/monitoring/alerting.nix @@ -260,8 +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: {{ . }} - {{ end -}} + {{ else }}{{ with index $.CommonAnnotations "description" }}Details: {{ . }} + {{ end }}{{ end -}} {{ with .GeneratorURL }}Source: {{ . }} {{ end }} {{ end -}}