fix(monitoring): escape go templates with raw block in alertmanager-ntfy template
ansible-core-mon / deploy (push) Successful in 12s

This commit is contained in:
karpenok committed 2026-11-11 21:06:52 +07:00
1 parent 317b5d6207
commit a0ec829eee
1 file changed
+3
@@ -18,6 +18,7 @@ ntfy:
condition: status == "firing" && labels.severity == "critical"
- tag: warning
condition: status == "firing" && labels.severity != "critical"
{% raw %}
templates:
title: |
{{ if eq .Status "resolved" }}✅ [Восстановлено] {{ index .Labels "alertname" }}: {{ if index .Labels "host" }}{{ index .Labels "host" }}{{ else }}{{ index .Labels "instance" }}{{ end }}{{ else }}🚨 [СБОЙ] {{ index .Annotations "summary" }}{{ end }}
@@ -31,4 +32,6 @@ ntfy:
https://graf.gunihome.ru
X-Actions: |
view, 📊 Открыть Grafana, https://graf.gunihome.ru, clear=true
{% endraw %}
async: false