@cryptotaxi247 / infra-1 / commits / d30dc7e7

go-neb: Only show Grafana link when applicable

Dionysis Grigoropoulos committed Apr 23, 2024 at 23:46 UTC d30dc7e7f163b0d1acf3bb2beeb735362513debf
1 file changed +3 -1
delft/pluto/prometheus/alertmanager.nix
+3 -1
@@ -110,7 +110,9 @@
110 {{ end }}
111 {{ index .Labels "alertname"}}: {{ index .Annotations "summary"}}
112 (
113 - <a href="{{ index .Annotations "grafana" }}">📈 Grafana</a>,
113 + {{ if .Annotations.grafana }}
114 + <a href="{{ index .Annotations "grafana" }}">📈 Grafana</a>,
115 + {{ end }}
116 <a href="{{ .GeneratorURL }}">🔥 Prometheus</a>,
117 <a href="{{ .SilenceURL }}">🔕 Silence</a>
118 )<br/>