feat(cloudnativepg): Add podmonitor

This commit is contained in:
Tanguy Herbron 2024-12-21 22:41:34 +01:00
parent 7f5953dda9
commit fb4700540d
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: argocd
resources:
- podmonitor.yaml

View File

@ -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