From dc39e02242ea962b6fea6975e6dde8edc8a24935 Mon Sep 17 00:00:00 2001 From: Robbie Date: Tue, 16 Jun 2026 11:02:17 -0400 Subject: [PATCH] fix: alloy config --- docker/alloy/config.alloy | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/docker/alloy/config.alloy b/docker/alloy/config.alloy index 3f545e3..2ee899f 100644 --- a/docker/alloy/config.alloy +++ b/docker/alloy/config.alloy @@ -17,6 +17,12 @@ otelcol.receiver.otlp "default" { http { endpoint = "0.0.0.0:4318" } + + output { + traces = [otelcol.exporter.otlp.lgtm.input] + metrics = [otelcol.exporter.otlp.lgtm.input] + logs = [otelcol.exporter.otlp.lgtm.input] + } } // --------------------------------------------------------------------------- @@ -27,19 +33,10 @@ otelcol.receiver.otlp "default" { // --------------------------------------------------------------------------- otelcol.exporter.otlp "lgtm" { client { - endpoint = env("OTEL_EXPORTER_OTLP_ENDPOINT", "http://lgtm:4318") + endpoint = env("OTEL_EXPORTER_OTLP_ENDPOINT") tls { insecure = true insecure_skip_verify = true } } } - -// --------------------------------------------------------------------------- -// Pipeline — Connect receiver to exporter(s) -// Routes telemetry from the OTLP receiver to the LGTM exporter. -// --------------------------------------------------------------------------- -otelcol.pipeline "default" { - receiver = otelcol.receiver.otlp.default - exporter = otelcol.exporter.otlp.lgtm -}