Skip to content

Latest commit

 

History

History
62 lines (42 loc) · 1.41 KB

File metadata and controls

62 lines (42 loc) · 1.41 KB

OpenTelemetry Collector

The OpenTelemetry Collector receives OTLP telemetry from applications and forwards it to an OTLP endpoint.

Build Variables

Set these in the build variables:

DPANEL_DOCKER_NETWORK=production-dpanel-network
DPANEL_DOCKER_IMAGE_TAG=0.123.0

Runtime Variables

Set 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=4317

OTEL_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.

Connection

From the Docker host:

127.0.0.1:4318

From another container on the same Docker network:

otel:4318
otel:4317

Notes

PORT 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.