Skip to content

Commit 1d47ca7

Browse files
authored
refactor: db chart prometheus monitor configuration (#44)
1 parent 8d23900 commit 1d47ca7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

charts/greptimedb/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: greptimedb
33
description: A Helm chart for deploying GreptimeDB cluster in Kubernetes
44
type: application
5-
version: 0.1.1-alpha.7
5+
version: 0.1.1-alpha.8
66
appVersion: 0.3.0-20230515-nightly

charts/greptimedb/templates/cluster.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ spec:
4141
storageClassName: {{ .Values.datanode.storage.storageClassName }}
4242
storageSize: {{ .Values.datanode.storage.storageSize }}
4343
storageRetainPolicy: {{ .Values.datanode.storage.storageRetainPolicy }}
44-
enablePrometheusMonitor: {{ .Values.enablePrometheusMonitor }}
44+
{{- if (and .Values.prometheusMonitor .Values.prometheusMonitor.enabled )}}
45+
prometheusMonitor: {{- toYaml .Values.prometheusMonitor | nindent 4 }}
46+
{{- end }}
4547
httpServicePort: {{ .Values.httpServicePort }}
4648
grpcServicePort: {{ .Values.grpcServicePort }}
4749
mysqlServicePort: {{ .Values.mysqlServicePort }}

0 commit comments

Comments
 (0)