From 1d47ca741b2af224a2af51c065f859b95252938b Mon Sep 17 00:00:00 2001 From: liyang Date: Thu, 18 May 2023 10:16:41 +0800 Subject: [PATCH] refactor: db chart prometheus monitor configuration (#44) --- charts/greptimedb/Chart.yaml | 2 +- charts/greptimedb/templates/cluster.yaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/charts/greptimedb/Chart.yaml b/charts/greptimedb/Chart.yaml index fcd6d68..920d87e 100644 --- a/charts/greptimedb/Chart.yaml +++ b/charts/greptimedb/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: greptimedb description: A Helm chart for deploying GreptimeDB cluster in Kubernetes type: application -version: 0.1.1-alpha.7 +version: 0.1.1-alpha.8 appVersion: 0.3.0-20230515-nightly diff --git a/charts/greptimedb/templates/cluster.yaml b/charts/greptimedb/templates/cluster.yaml index 22867cb..97d1be6 100644 --- a/charts/greptimedb/templates/cluster.yaml +++ b/charts/greptimedb/templates/cluster.yaml @@ -41,7 +41,9 @@ spec: storageClassName: {{ .Values.datanode.storage.storageClassName }} storageSize: {{ .Values.datanode.storage.storageSize }} storageRetainPolicy: {{ .Values.datanode.storage.storageRetainPolicy }} - enablePrometheusMonitor: {{ .Values.enablePrometheusMonitor }} + {{- if (and .Values.prometheusMonitor .Values.prometheusMonitor.enabled )}} + prometheusMonitor: {{- toYaml .Values.prometheusMonitor | nindent 4 }} + {{- end }} httpServicePort: {{ .Values.httpServicePort }} grpcServicePort: {{ .Values.grpcServicePort }} mysqlServicePort: {{ .Values.mysqlServicePort }}