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