From 5bbf85a25fc4bb5abc9d20e62605186cd82d36ab Mon Sep 17 00:00:00 2001 From: Mohammad Baghertabar Date: Sun, 28 Apr 2024 19:30:13 +0330 Subject: [PATCH] fix/prometheus-mysql-exporter:rm-default-metric-endpoint-on-multi-target Signed-off-by: Mohammad Baghertabar --- charts/prometheus-mysql-exporter/Chart.yaml | 2 +- charts/prometheus-mysql-exporter/templates/servicemonitor.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/prometheus-mysql-exporter/Chart.yaml b/charts/prometheus-mysql-exporter/Chart.yaml index 91e94e40d9dc..c706deb4f736 100644 --- a/charts/prometheus-mysql-exporter/Chart.yaml +++ b/charts/prometheus-mysql-exporter/Chart.yaml @@ -1,7 +1,7 @@ apiVersion: v1 description: A Helm chart for prometheus mysql exporter with cloudsqlproxy name: prometheus-mysql-exporter -version: 2.5.2 +version: 2.5.3 home: https://github.com/prometheus/mysqld_exporter appVersion: v0.15.1 sources: diff --git a/charts/prometheus-mysql-exporter/templates/servicemonitor.yaml b/charts/prometheus-mysql-exporter/templates/servicemonitor.yaml index 59108d9d3209..c8ff5a7405a7 100644 --- a/charts/prometheus-mysql-exporter/templates/servicemonitor.yaml +++ b/charts/prometheus-mysql-exporter/templates/servicemonitor.yaml @@ -73,6 +73,7 @@ spec: {{- end }} {{- end }} {{- end }} + {{- if not .Values.serviceMonitor.multipleTarget.enabled }} - path: /metrics port: {{ .Values.service.name }} {{- if .Values.serviceMonitor.interval }} @@ -87,4 +88,5 @@ spec: {{- if .Values.serviceMonitor.relabelings }} relabelings: {{ toYaml .Values.serviceMonitor.relabelings | nindent 8 }} {{- end }} + {{- end }} {{- end }}