From ea2bfa1dbc1906ce345a244375dadbb305d8758c Mon Sep 17 00:00:00 2001 From: Bismarck Paliz <1072760+bismarck@users.noreply.github.com> Date: Thu, 29 Feb 2024 13:48:02 -0500 Subject: [PATCH] Create ServiceMonitor for metrics collector --- charts/kube-otel-stack/templates/servicemonitors.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }}