fix: rook-ceph csi metrics

This commit is contained in:
auricom
2021-12-23 00:36:46 +01:00
parent 776f934de0
commit 496931c4e9
4 changed files with 28 additions and 27 deletions

View File

@@ -53,7 +53,7 @@ spec:
devices:
- name: "nvme0n1"
cephBlockPools:
- name: ceph-blockpool
- name: replicapool
spec:
failureDomain: host
replicated:

View File

@@ -18,26 +18,26 @@ spec:
- port: http-metrics
path: /metrics
interval: 5s
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: csi-metrics
namespace: rook-ceph
labels:
team: rook
spec:
namespaceSelector:
matchNames:
- rook-ceph
selector:
matchLabels:
app: csi-metrics
endpoints:
- port: csi-http-metrics
path: /metrics
interval: 5s
# comment csi-grpc-metrics realated information if csi grpc metrics is not enabled
- port: csi-grpc-metrics
path: /metrics
interval: 5s
# ---
# apiVersion: monitoring.coreos.com/v1
# kind: ServiceMonitor
# metadata:
# name: csi-metrics
# namespace: rook-ceph
# labels:
# team: rook
# spec:
# namespaceSelector:
# matchNames:
# - rook-ceph
# selector:
# matchLabels:
# app: csi-metrics
# endpoints:
# - port: csi-http-metrics
# path: /metrics
# interval: 5s
# # comment csi-grpc-metrics realated information if csi grpc metrics is not enabled
# - port: csi-grpc-metrics
# path: /metrics
# interval: 5s