rook-ceph: create servicemonitor chart template

This commit is contained in:
williamp committed 2025-11-21 09:44:43 -05:00
1 parent 24df3974ae
commit fdb0421c4e
2 files changed
+22 -6

No files matched your search

@@ -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 }}