From 7d55cdbcf9b847059a6f7f740d84193e99f2d788 Mon Sep 17 00:00:00 2001 From: zhenyus Date: Mon, 17 Mar 2025 23:28:27 +0800 Subject: [PATCH] fix: update service monitor configurations to use targetPort instead of port Signed-off-by: zhenyus --- .../helm-pkg/content/templates/content/servicemonitor.yaml | 2 +- .../notification/templates/notification/servicemonitor.yaml | 2 +- .../helm-pkg/payment/templates/payment/servicemonitor.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/freeleaps/helm-pkg/content/templates/content/servicemonitor.yaml b/freeleaps/helm-pkg/content/templates/content/servicemonitor.yaml index 197d4700..76289ed1 100644 --- a/freeleaps/helm-pkg/content/templates/content/servicemonitor.yaml +++ b/freeleaps/helm-pkg/content/templates/content/servicemonitor.yaml @@ -15,7 +15,7 @@ metadata: spec: endpoints: - path: /api/_/metrics - port: {{ .Values.content.serviceMonitor.port }} + targetPort: {{ .Values.content.serviceMonitor.port }} {{- if .Values.content.serviceMonitor.interval }} interval: {{ .Values.content.serviceMonitor.interval }} {{- end }} diff --git a/freeleaps/helm-pkg/notification/templates/notification/servicemonitor.yaml b/freeleaps/helm-pkg/notification/templates/notification/servicemonitor.yaml index c6858df4..bf05f610 100644 --- a/freeleaps/helm-pkg/notification/templates/notification/servicemonitor.yaml +++ b/freeleaps/helm-pkg/notification/templates/notification/servicemonitor.yaml @@ -15,7 +15,7 @@ metadata: spec: endpoints: - path: /api/_/metrics - port: {{ .Values.notification.serviceMonitor.port }} + targetPort: {{ .Values.notification.serviceMonitor.port }} {{- if .Values.notification.serviceMonitor.interval }} interval: {{ .Values.notification.serviceMonitor.interval }} {{- end }} diff --git a/freeleaps/helm-pkg/payment/templates/payment/servicemonitor.yaml b/freeleaps/helm-pkg/payment/templates/payment/servicemonitor.yaml index 9430c5dc..cbcf3eab 100644 --- a/freeleaps/helm-pkg/payment/templates/payment/servicemonitor.yaml +++ b/freeleaps/helm-pkg/payment/templates/payment/servicemonitor.yaml @@ -15,7 +15,7 @@ metadata: spec: endpoints: - path: /api/_/metrics - port: {{ .Values.payment.serviceMonitor.port }} + targetPort: {{ .Values.payment.serviceMonitor.port }} {{- if .Values.payment.serviceMonitor.interval }} interval: {{ .Values.payment.serviceMonitor.interval }} {{- end }}