modules/nixos/monitoring/message.html.tmpl: various

This commit is contained in:
zowoq 2023-08-21 19:49:49 +10:00
parent d9bb98aa79
commit 287ae73ad2

View file

@ -1,11 +1,11 @@
<p> <p>
{{ if eq .Status "firing" }} {{ if eq .Status "firing" }}
🔥 <strong><font color="#ff0000">FIRING</font></strong> 🔥 <strong><font color="#ff0000">FIRING</font></strong>
{{ else if eq .Status "resolved"}} {{ else if eq .Status "resolved" }}
✅ <strong><font color="#00ff00">RESOLVED</font></strong> ✅ <strong><font color="#33cc33">RESOLVED</font></strong>
{{ else }} {{ else }}
<strong><font>{{.Status}}</font></strong> " <strong><font>{{.Status}}</font></strong>
{{ end }} <code>[{{.Labels.instance}}]</code> >> <b>{{.Labels.alertname}}</b> {{ end }} <b><code>[{{.Labels.host}}]</code> >> <code>{{.Labels.alertname}}</code></b>
</br> </br>
{{.Annotations.description}} {{.Annotations.description}}
</p> </p>