diff --git a/charts/kube-otel-stack/templates/servicemonitors.yaml b/charts/kube-otel-stack/templates/servicemonitors.yaml index aed2be8..bbe76bc 100644 --- a/charts/kube-otel-stack/templates/servicemonitors.yaml +++ b/charts/kube-otel-stack/templates/servicemonitors.yaml @@ -1,4 +1,4 @@ -{{ $collectorList := (append (append .Values.collectors .Values.tracesCollector) .Values.metricsCollector) }} +{{ $collectorList := (append (append (append .Values.collectors .Values.tracesCollector) .Values.metricsCollector) .Values.logsCollector)}} {{ range $_, $collector := $collectorList -}} {{ if $collector.enabled }} {{ $collectorName := (print $.Release.Name "-" $collector.name) }}