fix: alloy config
This commit is contained in:
parent
dbff6e4793
commit
dc39e02242
1 changed files with 7 additions and 10 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue