cluster

Infrastructure files for Nordgedanken and Midnightthoughts.
git clone git://archive.git.mtrnord.blog/MTRNord/cluster.git
Log | Files | Refs | README

commit 9f9492e1881a694c26280a44967c8be5782801a2
parent 6863d6a9705f00d1a556a527d719d59a1b0362bc
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sat, 16 Nov 2024 16:10:21 +0100

Enable pod monitor

Diffstat:
Minfrastructure/configs/cnpg-cluster.yaml | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/infrastructure/configs/cnpg-cluster.yaml b/infrastructure/configs/cnpg-cluster.yaml @@ -1,3 +1,4 @@ +--- apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: @@ -139,3 +140,15 @@ spec: # password: # name: postgres.postgres-cluster.credentials.postgresql.acid.zalan.do # key: password +--- +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: pg-cluster-v2 + namespace: postgres-cluster +spec: + selector: + matchLabels: + "cnpg.io/cluster": pg-cluster-v2 + podMetricsEndpoints: + - port: metrics