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 d788850
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
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: 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 d788850

Please sign in to comment.