Skip to content

Commit a5a2e7f

Browse files
committed
feat(cnpg-operator): Add PodMonitor as component
ref: #18
1 parent 65840a8 commit a5a2e7f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
apiVersion: monitoring.coreos.com/v1
3+
kind: PodMonitor
4+
metadata:
5+
name: cnpg-controller-manager
6+
spec:
7+
selector:
8+
matchLabels:
9+
app.kubernetes.io/name: cloudnative-pg
10+
podMetricsEndpoints:
11+
- port: metrics
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
apiVersion: kustomize.config.k8s.io/v1alpha1
3+
kind: Component
4+
5+
6+
resources:
7+
- PodMonitor-cnpg-controller-manager.yaml

0 commit comments

Comments
 (0)