fix: alloy config

This commit is contained in:
Robbie 2026-06-16 11:02:17 -04:00
parent dbff6e4793
commit dc39e02242

View file

@ -17,6 +17,12 @@ otelcol.receiver.otlp "default" {
http { http {
endpoint = "0.0.0.0:4318" 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" { otelcol.exporter.otlp "lgtm" {
client { client {
endpoint = env("OTEL_EXPORTER_OTLP_ENDPOINT", "http://lgtm:4318") endpoint = env("OTEL_EXPORTER_OTLP_ENDPOINT")
tls { tls {
insecure = true insecure = true
insecure_skip_verify = 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
}