Set up Prometheus and Alertmanager #632

Merged
raucao merged 50 commits from feature/prometheus_cookbook into master 2026-07-09 13:33:38 +00:00
Showing only changes of commit 81aae3d1bb - Show all commits
@@ -26,6 +26,6 @@ receivers:
send_resolved: <%= wc["send_resolved"] %> send_resolved: <%= wc["send_resolved"] %>
payload: payload:
room: "<%= wc["room"] %>" room: "<%= wc["room"] %>"
message: '{{ .Status | toUpper }}: {{ .CommonLabels.alertname }}{{ if .CommonLabels.instance }} on {{ .CommonLabels.instance }}{{ end }}{{ if .CommonLabels.vm_host }} (host: {{ .CommonLabels.vm_host }}){{ end }} — {{ .CommonAnnotations.summary }}' message: '{{ if eq .Status "resolved" }}✅{{ else if eq .CommonLabels.severity "warning" }}⚠️{{ else }}🚨{{ end }} {{ .Status | toUpper }}: {{ .CommonLabels.alertname }}{{ if .CommonLabels.instance }} on {{ .CommonLabels.instance }}{{ end }}{{ if .CommonLabels.vm_host }} (host: {{ .CommonLabels.vm_host }}){{ end }} — {{ .CommonAnnotations.summary }}'
<% end %> <% end %>
<% end %> <% end %>