mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-23 06:40:23 +00:00
bcd646ee55
As kubernetes CSI sidecar is exposing the GRPC mertics we can make use of the same in ceph-csi we dont need to expose our own. update: #881 Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
23 lines
547 B
YAML
23 lines
547 B
YAML
---
|
|
# 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:
|
|
name: csi-metrics
|
|
namespace: rook-ceph
|
|
labels:
|
|
team: rook
|
|
spec:
|
|
namespaceSelector:
|
|
matchNames:
|
|
- default
|
|
selector:
|
|
matchLabels:
|
|
app: csi-metrics
|
|
endpoints:
|
|
- port: http-metrics
|
|
path: /metrics
|
|
interval: 5s
|