From 46ad3cad7e77f343197bd9d21e065181336c7a19 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Fri, 4 Oct 2024 18:50:50 +0800 Subject: [PATCH] tyo0/prometheus: simplify alert message --- hosts/aws/tyo0/services/prometheus.nix | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/hosts/aws/tyo0/services/prometheus.nix b/hosts/aws/tyo0/services/prometheus.nix index 1ce8445..761918a 100644 --- a/hosts/aws/tyo0/services/prometheus.nix +++ b/hosts/aws/tyo0/services/prometheus.nix @@ -162,15 +162,9 @@ in let tmpl = lib.escapeURL '' {{ range .alerts }}- Status: {{ .status }} - - Labels: - {{ range $k, $v := .labels }} - {{ $k }} = {{ $v }} - {{ end }} - Annotations: - {{ range $k, $v := .annotations }} - {{ $k }} = {{ $v }} - {{ end }} + Summary: {{ .annotations.summary }} + Description: {{ .annotations.description }} Source: {{ .generatorURL }} - {{ end }} ''; in