# Shared dev OpenTelemetry collector for the ZB.MOM.WW family (scadaproj#13). # Deploy on the shared Docker host 10.100.0.35: # mkdir -p ~/zb-otel-collector/data && chmod 777 ~/zb-otel-collector/data, copy docker-compose.yml, # config.yaml and otelsum.py into ~/zb-otel-collector/ (README "Deploy / update") # cd ~/zb-otel-collector && docker compose up -d # Verify: curl -s http://10.100.0.35:13133/ -> {"status":"Server available",...} # curl -s http://10.100.0.35:8889/metrics -> received metrics, re-exposed for Prometheus # tail -f ~/zb-otel-collector/data/traces.jsonl (also metrics.jsonl / logs.jsonl) name: zb-otel-collector services: otel-collector: # Pinned exact release (published 2026-10-05). Bump deliberately; never :latest. image: otel/opentelemetry-collector-contrib:0.162.0 container_name: zb-otel-collector restart: unless-stopped # The image runs as uid 10001; the bind-mounted data dir must be writable by it # (README: `sudo chown 10001:10001 data` or `chmod 777 data`). command: ["--config=/etc/otelcol-contrib/config.yaml"] ports: - "4317:4317" # OTLP gRPC (family default: :Telemetry:OtlpEndpoint=http://10.100.0.35:4317) - "4318:4318" # OTLP HTTP/protobuf - "8889:8889" # Prometheus exporter: everything received over OTLP, re-exposed for scraping - "13133:13133" # health_check extension volumes: - ./config.yaml:/etc/otelcol-contrib/config.yaml:ro - ./data:/data logging: driver: json-file options: max-size: "20m" max-file: "3"