From 2f62908b2f8ca13afeec9e4c43c194e9af10e55e Mon Sep 17 00:00:00 2001
From: Borja Garrido Bear <borja.garrido.bear@cern.ch>
Date: Tue, 18 Feb 2025 14:07:17 +0000
Subject: [PATCH] prometheus: bring back alerting configuration

---
 templates/prometheus/prometheus.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/templates/prometheus/prometheus.yaml b/templates/prometheus/prometheus.yaml
index 86d66fd..24f1056 100644
--- a/templates/prometheus/prometheus.yaml
+++ b/templates/prometheus/prometheus.yaml
@@ -68,4 +68,11 @@ spec:
           name: it-monit-metrics-collector-prometheus
           key: password
     {{ end }}
+  {{- if .Values.metrics.alertmanager.enabled }}
+  alerting:
+    alertmanagers:
+      - namespace: {{ .Release.Namespace }}
+        name: it-monit-alertmanager
+        port: http
+  {{- end }}
 {{- end -}}
-- 
GitLab