Skip to content

Commit 2affd6a

Browse files
committed
feat: add podMonitor since no service to be discvered
1 parent 2c8b95e commit 2affd6a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

charts/ext-postgres-operator/templates/pod-monitor.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ spec:
1919
- {{ .Release.Namespace }}
2020
podMetricsEndpoints:
2121
- interval: 30s
22+
scrapeTimeout: 10s
2223
path: /metrics
2324
port: metrics
2425
{{- if .Values.podMonitor.relabelings }}

charts/ext-postgres-operator/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ env: {}
114114
# POSTGRES_INSTANCE: "XXXXXXXXXX"
115115
# POSTGRES_CLOUD_PROVIDER: "AWS"
116116

117-
# ServiceMonitor is a custom resource defined by the Prometheus Operator
118-
serviceMonitor: {}
117+
# podMonitor is a custom resource used by the Prometheus-Operator and others
118+
podMonitor: {}
119119
# interval: 30s
120120
# scrapeTimeout: 10s
121121
# relabeling: []

0 commit comments

Comments
 (0)