feat(infra): shared dev OTel collector; OTLP proven end to end for all four apps (#13)

- infra/otel-collector/: zb-otel-collector (otelcol-contrib 0.162.0) on 10.100.0.35 —
  OTLP gRPC :4317 / HTTP :4318, debug + file exporters, Prometheus re-export :8889,
  health :13133; README runbook + otelsum.py summariser. Deployed.
- components/observability/2026-11-12-otlp-end-to-end-evidence.md: metrics + traces
  received from OtOpcUa, HistorianGateway, ScadaBridge (Site) and MxAccessGateway;
  OtOpcUa Galaxy driver allowlist defect fixed in lmxopcua#892 (db86b996).
- GAPS.md, current-state banners, index row, Telemetry CLAUDE.md: #13 closed; follow-ups
  #54 (wonder-tier collector), #55 (resource identity + logs over OTLP), ScadaBridge#133
  (Central role). Telemetry 0.2.1 deliberately left unpublished (no lib change needed).

Claude-Session: https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
This commit is contained in:
Joseph Doherty
2026-11-12 20:48:36 -05:00
parent f98ba08910
commit e1a2df83f7
12 changed files with 409 additions and 7 deletions
+31
View File
@@ -0,0 +1,31 @@
# 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: <App>: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"