rook-ceph: create servicemonitor chart template
This commit is contained in:
20
system-apps/rook-ceph/operator/templates/servicemonitor.yaml
Normal file
20
system-apps/rook-ceph/operator/templates/servicemonitor.yaml
Normal 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 }}
|
||||
@@ -1,6 +1,2 @@
|
||||
rook-ceph:
|
||||
csi:
|
||||
serviceMonitor:
|
||||
enabled: true
|
||||
monitoring:
|
||||
enabled: true
|
||||
monitoring:
|
||||
enabled: true
|
||||
Reference in New Issue
Block a user