rook-ceph: create servicemonitor chart template

This commit is contained in:
2025-11-21 09:44:43 -05:00
parent 24df3974ae
commit fdb0421c4e
2 changed files with 22 additions and 6 deletions

View File

@@ -0,0 +1,20 @@
{{- if and .Values.monitoring.enabled -}}
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: rook-ceph-exporter
namespace: {{ .Release.Namespace }}
spec:
namespaceSelector:
matchNames:
- {{ .Release.Namespace }}
selector:
matchLabels:
app: rook-ceph-exporter
rook_cluster: {{ .Values.monitoring.cluster_name | default "rook-ceph" }}
endpoints:
- port: ceph-exporter-http-metrics
path: /metrics
interval: 10s
{{- end }}

View File

@@ -1,6 +1,2 @@
rook-ceph:
csi:
serviceMonitor:
enabled: true
monitoring:
enabled: true
monitoring:
enabled: true