Skip to content

Commit d2c36de

Browse files
[prometheus-postgres-exporter] Add ability to customize API version for service monitor (#5972)
Signed-off-by: Akshay Rohatgi <[email protected]> Signed-off-by: Akshay Rohatgi <[email protected]> Co-authored-by: MH <[email protected]>
1 parent eace969 commit d2c36de

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

charts/prometheus-postgres-exporter/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: v2
33
appVersion: v0.17.1
44
description: A Helm chart for prometheus postgres-exporter
55
name: prometheus-postgres-exporter
6-
version: 7.0.1
6+
version: 7.1.1
77
home: https://github.com/prometheus-community/postgres_exporter
88
sources:
99
- https://github.com/prometheus-community/postgres_exporter

charts/prometheus-postgres-exporter/templates/servicemonitor.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{{- if .Values.serviceMonitor.enabled }}
2-
apiVersion: monitoring.coreos.com/v1
2+
apiVersion: {{ .Values.serviceMonitor.apiVersion | default "monitoring.coreos.com/v1" }}
33
kind: ServiceMonitor
44
metadata:
55
{{- if .Values.serviceMonitor.labels }}

charts/prometheus-postgres-exporter/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ automountServiceAccountToken: false
2929
serviceMonitor:
3030
# When set true then use a ServiceMonitor to configure scraping
3131
enabled: false
32+
# Specify the API version for the ServiceMonitor
33+
apiVersion: "monitoring.coreos.com/v1"
3234
# Set the namespace the ServiceMonitor should be deployed
3335
# namespace: monitoring
3436
# Set how frequently Prometheus should scrape

0 commit comments

Comments
 (0)