add mon
This commit is contained in:
19
4.monitoring/podMonitor.yaml
Normal file
19
4.monitoring/podMonitor.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PodMonitor
|
||||
metadata:
|
||||
labels:
|
||||
app: psql-pg-exporter
|
||||
name: zalando-pg-exporter
|
||||
namespace: rm-pgsql
|
||||
spec:
|
||||
podMetricsEndpoints:
|
||||
- path: /metrics
|
||||
port: exporter
|
||||
relabelings:
|
||||
- action: replace
|
||||
replacement: rke-first-cluster
|
||||
targetLabel: cluster
|
||||
scheme: http
|
||||
selector:
|
||||
matchLabels:
|
||||
application: spilo
|
Reference in New Issue
Block a user