From 8cdd1000fff4968a0b8c3b23726041e758f96d53 Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 9 Sep 2024 16:36:48 +0200
Subject: [PATCH] OZG-6665 Adjust monitor helm chart

---
 src/main/helm/templates/service_monitor.yaml | 2 +-
 src/test/helm/service_monitor_test.yaml      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/helm/templates/service_monitor.yaml b/src/main/helm/templates/service_monitor.yaml
index 29e7125b..66ec606c 100644
--- a/src/main/helm/templates/service_monitor.yaml
+++ b/src/main/helm/templates/service_monitor.yaml
@@ -36,7 +36,7 @@ metadata:
 spec:
   endpoints:
   - interval: 30s
-    targetPort: 8080
+    targetPort: metrics
     path: /q/metrics
     scheme: http
   namespaceSelector:
diff --git a/src/test/helm/service_monitor_test.yaml b/src/test/helm/service_monitor_test.yaml
index 32b0cf3e..38f07ce0 100644
--- a/src/test/helm/service_monitor_test.yaml
+++ b/src/test/helm/service_monitor_test.yaml
@@ -71,7 +71,7 @@ tests:
             interval: 30s
             path: /q/metrics
             scheme: http
-            targetPort: 8080
+            targetPort: metrics
   - it: namespace selector should contain the namespace
     asserts:
       - contains:
-- 
GitLab