2019-06-20 19:30:40 +00:00
|
|
|
---
|
|
|
|
# This is a servicemonitor that would be used by a prometheus collector to pick
|
|
|
|
# up liveness metrics. The label your prometheus instance is looking for will
|
|
|
|
# need to be supplied and the namespace may need to changed
|
|
|
|
apiVersion: monitoring.coreos.com/v1
|
|
|
|
kind: ServiceMonitor
|
|
|
|
metadata:
|
2019-08-21 09:28:02 +00:00
|
|
|
name: csi-metrics
|
2019-06-20 19:30:40 +00:00
|
|
|
namespace: rook-ceph
|
|
|
|
labels:
|
|
|
|
team: rook
|
|
|
|
spec:
|
|
|
|
namespaceSelector:
|
|
|
|
matchNames:
|
|
|
|
- default
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
2019-08-21 09:28:02 +00:00
|
|
|
app: csi-metrics
|
2019-06-20 19:30:40 +00:00
|
|
|
endpoints:
|
|
|
|
- port: http-metrics
|
|
|
|
path: /metrics
|
|
|
|
interval: 5s
|