From fb4700540df9881ffa1dbcd594543a1a9857d638 Mon Sep 17 00:00:00 2001 From: Tanguy Herbron Date: Sat, 21 Dec 2024 22:41:34 +0100 Subject: [PATCH] feat(cloudnativepg): Add podmonitor --- cloudnativepg/kustomization.yaml | 6 ++++++ cloudnativepg/podmonitor.yaml | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 cloudnativepg/kustomization.yaml create mode 100644 cloudnativepg/podmonitor.yaml diff --git a/cloudnativepg/kustomization.yaml b/cloudnativepg/kustomization.yaml new file mode 100644 index 0000000..62c116b --- /dev/null +++ b/cloudnativepg/kustomization.yaml @@ -0,0 +1,6 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: argocd + +resources: + - podmonitor.yaml diff --git a/cloudnativepg/podmonitor.yaml b/cloudnativepg/podmonitor.yaml new file mode 100644 index 0000000..ae1cc8c --- /dev/null +++ b/cloudnativepg/podmonitor.yaml @@ -0,0 +1,13 @@ +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: cnpg-controller-manager + namespace: cnpg-system + labels: + team: core +spec: + selector: + matchLabels: + app.kubernetes.io/name: cloudnative-pg + podMetricsEndpoints: + - port: metrics