From f153bfc0b46b27b3e46443629d48d4f71841c137 Mon Sep 17 00:00:00 2001 From: AB-UK Date: Thu, 8 Jan 2026 17:34:28 +0000 Subject: [PATCH] Fixed alert template --- .../grafana-alerting-configmap.yaml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/k8s/core/prom-stack/grafana-alerting-configmap.yaml b/k8s/core/prom-stack/grafana-alerting-configmap.yaml index 7e75bfa..2d0ee84 100644 --- a/k8s/core/prom-stack/grafana-alerting-configmap.yaml +++ b/k8s/core/prom-stack/grafana-alerting-configmap.yaml @@ -52,8 +52,11 @@ data: execErrState: Alerting for: 5m annotations: - description: 'Throttling rate: {{ printf "%.2f" $values.A }}' - summary: 'VPN node throttling CPU on {{ $labels.node }}' + pod: '{{ $labels.pod }}' + node: '{{ $labels.node }}' + namespace: '{{ $labels.namespace }}' + throttle_rate: '{{ printf "%.2f" $values.A }}' + summary: 'VPN node throttling CPU' labels: severity: warning @@ -74,15 +77,15 @@ data: {{ range .Alerts }} 📊 {{ .Labels.alertname }} - {{ if .Annotations.summary }}{{ .Annotations.summary }}{{ end }} + {{ .Annotations.summary }} 🎯 Details: - • Pod: {{ .Labels.pod }} - • Node: {{ .Labels.node }} - • Namespace: {{ .Labels.namespace }} - {{ if .Annotations.description }}• {{ .Annotations.description }}{{ end }} + • Pod: {{ .Annotations.pod }} + • Node: {{ .Annotations.node }} + • Namespace: {{ .Annotations.namespace }} + • Throttling rate: {{ .Annotations.throttle_rate }} - 🔗 Silence | Dashboard + 🔗 View in Grafana {{ end }} parse_mode: HTML