The OpenTelemetry Collector receives OTLP telemetry from applications and forwards it to an OTLP endpoint.
Set these in the build variables:
DPANEL_DOCKER_NETWORK=production-dpanel-network
DPANEL_DOCKER_IMAGE_TAG=0.123.0Set these in the runtime variables:
DPANEL_DOCKER_NETWORK=production-dpanel-network
DPANEL_DOCKER_IMAGE_TAG=0.123.0
DPANEL_DOCKER_NETWORK_ALIAS=otel
PORT=4318
DPANEL_OTEL_HOST_BIND=127.0.0.1
OTEL_EXPORTER_OTLP_ENDPOINT=uptrace:4317
OTEL_EXPORTER_OTLP_TLS_INSECURE=true
OTEL_EXPORTER_OTLP_HEADERS=uptrace-dsn=http://dummy-uptrace-project-token@uptrace:4317?grpc=4317OTEL_EXPORTER_OTLP_HEADERS is optional and accepts comma-separated
name=value entries. For example, Uptrace requires an uptrace-dsn header.
Omit OTEL_EXPORTER_OTLP_HEADERS when your OTLP destination does not need
custom exporter headers.
From the Docker host:
127.0.0.1:4318From another container on the same Docker network:
otel:4318
otel:4317PORT is the standard host-exposed port variable. It maps to OTLP HTTP
port 4318 inside the collector container.
Set OTEL_EXPORTER_OTLP_ENDPOINT to the target OTLP/gRPC backend before
starting this service.
The generated config directory is private on the host, while the mounted config file is readable by the container and mounted read-only.