From 44c91beaac38e65360569e818e964ab1e07d2704 Mon Sep 17 00:00:00 2001 From: fhreichert <44102996+fhreichert@users.noreply.github.com> Date: Sun, 31 Jul 2022 13:17:04 +0200 Subject: [PATCH] fix: Multiple targets are now created as differently named ServiceMonitors. (#2328) Signed-off-by: Felix Co-authored-by: Felix --- charts/prometheus-json-exporter/Chart.yaml | 2 +- charts/prometheus-json-exporter/templates/servicemonitor.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/charts/prometheus-json-exporter/Chart.yaml b/charts/prometheus-json-exporter/Chart.yaml index 9e58baa08c40..8f2c1bc58f5a 100644 --- a/charts/prometheus-json-exporter/Chart.yaml +++ b/charts/prometheus-json-exporter/Chart.yaml @@ -19,7 +19,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.2 +version: 0.2.3 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/prometheus-json-exporter/templates/servicemonitor.yaml b/charts/prometheus-json-exporter/templates/servicemonitor.yaml index 43cdcc6a3d87..90a4d6a64abb 100644 --- a/charts/prometheus-json-exporter/templates/servicemonitor.yaml +++ b/charts/prometheus-json-exporter/templates/servicemonitor.yaml @@ -4,7 +4,7 @@ apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: - name: {{ template "prometheus-json-exporter.fullname" $ }} + name: {{ template "prometheus-json-exporter.fullname" $ }}-{{ .name }} {{- if $.Values.serviceMonitor.namespace }} namespace: {{ $.Values.serviceMonitor.namespace }} {{- end }}