From 0768eb125b4695b2143143511aa1326427ec8b89 Mon Sep 17 00:00:00 2001 From: Charlie Haley Date: Fri, 15 Dec 2023 14:53:28 +0000 Subject: [PATCH] helm: allow configuring monitoring interval Signed-off-by: Charlie Haley --- deploy/charts/rook-ceph-cluster/templates/cephcluster.yaml | 3 +++ deploy/charts/rook-ceph-cluster/values.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/deploy/charts/rook-ceph-cluster/templates/cephcluster.yaml b/deploy/charts/rook-ceph-cluster/templates/cephcluster.yaml index 3a568e22a..4f5c78ca1 100644 --- a/deploy/charts/rook-ceph-cluster/templates/cephcluster.yaml +++ b/deploy/charts/rook-ceph-cluster/templates/cephcluster.yaml @@ -15,6 +15,9 @@ spec: {{- if .Values.monitoring.externalMgrPrometheusPort }} externalMgrPrometheusPort: {{ toYaml .Values.monitoring.externalMgrPrometheusPort }} {{- end }} +{{- if .Values.monitoring.interval }} + interval: {{ .Values.monitoring.interval }} +{{- end }} {{- end }} {{ toYaml .Values.cephClusterSpec | indent 2 }} diff --git a/deploy/charts/rook-ceph-cluster/values.yaml b/deploy/charts/rook-ceph-cluster/values.yaml index 67ed48f4b..fb2499c47 100644 --- a/deploy/charts/rook-ceph-cluster/values.yaml +++ b/deploy/charts/rook-ceph-cluster/values.yaml @@ -61,6 +61,8 @@ monitoring: # Monitoring settings for external clusters: # externalMgrEndpoints: # externalMgrPrometheusPort: + # Scrape interval for prometheus + # interval: 5s # allow adding custom labels and annotations to the prometheus rule prometheusRule: # -- Labels applied to PrometheusRule