infra: deploy OTel Collector as fan-out layer in compose.yml #210
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add OTel Collector service to route traces→Jaeger, metrics→Prometheus, logs→Loki.
Tasks
otel-collectorservice tocompose.yml(image:otel/opentelemetry-collector-contrib:latest)infra/otel/otel-collector.ymlwith receivers (OTLP gRPC 4317), processors (batch), exporters (otlp/jaeger, prometheus :8889, loki)observability(internal)otel-collector:8889to Prometheus scrape targetsjaeger:4317tootel-collector:4317docker compose up otel-collector+ verify receivers/exporters healthyStarting infra work.
infra/otel/otel-collector.ymlconfigComplete.
Created:
infra/otel/otel-collector.yml— OTLP gRPC+HTTP receiver, batch processor, fan-out exporters:otlp/jaeger(jaeger:4317)Modified:
compose.yml— addedotel-collectorservice (image:otel/opentelemetry-collector-contrib:latest, observability network, health check)compose.yml— migrated Nessie, Polaris, API fromjaeger:4317→otel-collector:4317infra/traefik/traefik.yml— OTLP endpoint →otel-collector:4317infra/trino/etc/config.properties— tracing endpoint →otel-collector:4317infra/prometheus/targets/services.yml— addedotel-collector:8889scrape target✅
docker compose config --quietpasses.