diff --git a/manifests/components/operators/cloudnative-pg/kustomization.yaml b/manifests/components/operators/cloudnative-pg/kustomization.yaml index f4b48b50..8ee8ca32 100644 --- a/manifests/components/operators/cloudnative-pg/kustomization.yaml +++ b/manifests/components/operators/cloudnative-pg/kustomization.yaml @@ -2,7 +2,8 @@ apiVersion: kustomize.config.k8s.io/v1alpha1 kind: Component resources: + - image-catalog.yaml - namespace.yaml - operator-group.yaml + - pod-monitor.yaml - subscription.yaml - - image-catalog.yaml diff --git a/manifests/components/operators/cloudnative-pg/pod-monitor.yaml b/manifests/components/operators/cloudnative-pg/pod-monitor.yaml new file mode 100644 index 00000000..65ac3bd2 --- /dev/null +++ b/manifests/components/operators/cloudnative-pg/pod-monitor.yaml @@ -0,0 +1,10 @@ +apiVersion: monitoring.coreos.com/v1 +kind: PodMonitor +metadata: + name: cnpg-controller-manager +spec: + selector: + matchLabels: + app.kubernetes.io/name: cloudnative-pg + podMetricsEndpoints: + - port: metrics