Skip to content

Commit

Permalink
Add poolers example, fix monitoring test
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitriy Alekseev <[email protected]>
  • Loading branch information
dragoangel committed Sep 4, 2024
1 parent 5817451 commit 0d23d06
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
18 changes: 18 additions & 0 deletions charts/cluster/examples/pgbouncer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,29 @@ mode: standalone

cluster:
instances: 1
monitoring:
enabled: true
podMonitor:
enabled: true

poolers:
- name: rw
type: rw
instances: 1
monitoring:
enabled: true
podMonitor:
enabled: true
relabelings:
- targetLabel: type
replacement: rw
- name: ro
type: ro
instances: 1
monitoring:
enabled: true
podMonitor:
enabled: true
relabelings:
- targetLabel: type
replacement: ro
2 changes: 1 addition & 1 deletion charts/cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ spec:
{{- toYaml .parameters | nindent 6 }}
pg_hba:
{{- toYaml .pg_hba | nindent 6 }}
{{ end }}
{{- end }}

{{- with .Values.cluster.roles }}
managed:
Expand Down
2 changes: 2 additions & 0 deletions charts/cluster/test/monitoring/01-monitoring_cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ poolers:
monitoring:
enabled: true
podMonitor:
enabled: true
relabelings:
- targetLabel: type
replacement: rw
Expand All @@ -57,6 +58,7 @@ poolers:
monitoring:
enabled: true
podMonitor:
enabled: true
relabelings:
- targetLabel: type
replacement: ro
Expand Down

0 comments on commit 0d23d06

Please sign in to comment.