diff --git a/execution/helm/theodolite-chart/templates/service-monitor.yaml b/execution/helm/theodolite-chart/templates/service-monitor.yaml index a37ac8d7ae51ef283b2b6e50d4dd6eae31a19d58..50e4688cf7f9b919afdc9455462034f682975893 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}}