diff --git a/charts/prometheus-mongodb-exporter/Chart.yaml b/charts/prometheus-mongodb-exporter/Chart.yaml index 85c13c8dfc26..d5e37994ea58 100644 --- a/charts/prometheus-mongodb-exporter/Chart.yaml +++ b/charts/prometheus-mongodb-exporter/Chart.yaml @@ -18,4 +18,4 @@ maintainers: name: prometheus-mongodb-exporter sources: - https://github.com/percona/mongodb_exporter -version: 3.12.1 +version: 3.13.0 diff --git a/charts/prometheus-mongodb-exporter/templates/servicemonitor.yaml b/charts/prometheus-mongodb-exporter/templates/servicemonitor.yaml index 28336cf9cd43..28f995693efa 100644 --- a/charts/prometheus-mongodb-exporter/templates/servicemonitor.yaml +++ b/charts/prometheus-mongodb-exporter/templates/servicemonitor.yaml @@ -1,5 +1,5 @@ {{ if .Values.serviceMonitor.enabled }} -apiVersion: monitoring.coreos.com/v1 +apiVersion: {{ .Values.serviceMonitor.apiVersion }} kind: ServiceMonitor metadata: name: {{ include "prometheus-mongodb-exporter.fullname" . }} diff --git a/charts/prometheus-mongodb-exporter/values.yaml b/charts/prometheus-mongodb-exporter/values.yaml index a78c67b1b4cc..2f1f0bb6910c 100644 --- a/charts/prometheus-mongodb-exporter/values.yaml +++ b/charts/prometheus-mongodb-exporter/values.yaml @@ -102,6 +102,7 @@ serviceAccount: serviceMonitor: enabled: false + apiVersion: "monitoring.coreos.com/v1" multiTarget: enabled: false # The username and password must be the same for every target configured below