From 9e5131989e74cdcf7317181604e0affbfca0f7d9 Mon Sep 17 00:00:00 2001 From: Anukul Sangwan Date: Tue, 2 Jul 2024 01:34:50 +0200 Subject: [PATCH] allow specifying additional outputs for otlp batch processor --- .../templates/alloy_config/_processors.alloy.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/charts/k8s-monitoring/templates/alloy_config/_processors.alloy.txt b/charts/k8s-monitoring/templates/alloy_config/_processors.alloy.txt index 4b8e6584f..39ab2941b 100644 --- a/charts/k8s-monitoring/templates/alloy_config/_processors.alloy.txt +++ b/charts/k8s-monitoring/templates/alloy_config/_processors.alloy.txt @@ -287,14 +287,14 @@ otelcol.processor.batch "batch_processor" { {{- end }} output { {{- if .Values.metrics.enabled }} - metrics = [otelcol.exporter.prometheus.metrics_converter.input] + metrics = [{{ append ((.Values.receivers.processors.batch.output).metrics | default (list)) "otelcol.exporter.prometheus.metrics_converter.input" | join "," }}] {{- end }} {{- if .Values.logs.enabled }} - logs = [otelcol.exporter.loki.logs_converter.input] + logs = [{{ append ((.Values.receivers.processors.batch.output).logs | default (list)) "otelcol.exporter.loki.logs_converter.input" | join "," }}] {{- end }} {{- if .Values.traces.enabled }} {{- if eq .Values.externalServices.tempo.protocol "otlp" }} - traces = [otelcol.exporter.otlp.traces_service.input] + traces = [{{ append ((.Values.receivers.processors.batch.output).traces | default (list)) "otelcol.exporter.otlp.traces_service.input" | join "," }}] {{- else if eq .Values.externalServices.tempo.protocol "otlphttp" }} traces = [otelcol.exporter.otlphttp.traces_service.input] {{- end }}