From df53ba94472c5f28dd06fb0e03ce12157452a48c Mon Sep 17 00:00:00 2001 From: "stu126940@mail.uni-kiel.de" <stu126940@mail.uni-kiel.de> Date: Wed, 25 Nov 2020 16:46:19 +0100 Subject: [PATCH] Create kafka service-monitor if kafka is enabled --- .../helm/theodolite-chart/templates/service-monitor.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/execution/helm/theodolite-chart/templates/service-monitor.yaml b/execution/helm/theodolite-chart/templates/service-monitor.yaml index a37ac8d7a..50e4688cf 100644 --- a/execution/helm/theodolite-chart/templates/service-monitor.yaml +++ b/execution/helm/theodolite-chart/templates/service-monitor.yaml @@ -1,3 +1,4 @@ +{{- if .Values.kafkaClient.enabled -}} apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor metadata: @@ -11,4 +12,5 @@ spec: app: cp-kafka endpoints: - port: metrics - interval: 7s \ No newline at end of file + interval: 7s +{{- end}} -- GitLab