Skip to content

Commit 2a444a2

Browse files
committed
Add enable_prometheus_exporter to podmonitor
Signed-off-by: Kwong Tung Nan <[email protected]>
1 parent 12212d7 commit 2a444a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

charts/pgcat/templates/prometheus_exporter.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
{{- if .Values.configuration.general.enable_prometheus_exporter }}
12
apiVersion: monitoring.coreos.com/v1
23
kind: PodMonitor
34
metadata:
@@ -14,3 +15,4 @@ spec:
1415
matchLabels:
1516
app.kubernetes.io/instance: pgcat
1617
app.kubernetes.io/name: pgcat
18+
{{- end }}

0 commit comments

Comments
 (0)