# zb-otel-collector — dev/test collector for the ZB.MOM.WW family (scadaproj#13). # Receives OTLP (gRPC 4317 + HTTP 4318) from OtOpcUa, ScadaBridge, MxAccessGateway and # HistorianGateway and proves receipt three ways: # * debug exporter -> `docker logs zb-otel-collector` (one summary line per batch) # * file exporters -> /data/{metrics,traces,logs}.jsonl (OTLP-JSON, rotated) # * prometheus exporter-> :8889/metrics, every received metric re-exposed with # job/instance + site_id/node_role/host_name labels (resource_constant_labels) # No auth on the receivers: dev network only. Do not expose this config to a production tier. extensions: health_check: endpoint: 0.0.0.0:13133 receivers: otlp: protocols: grpc: endpoint: 0.0.0.0:4317 http: endpoint: 0.0.0.0:4318 processors: memory_limiter: check_interval: 5s limit_mib: 512 spike_limit_mib: 128 batch: {} exporters: debug: verbosity: basic file/metrics: path: /data/metrics.jsonl rotation: { max_megabytes: 50, max_backups: 3 } file/traces: path: /data/traces.jsonl rotation: { max_megabytes: 50, max_backups: 3 } file/logs: path: /data/logs.jsonl rotation: { max_megabytes: 50, max_backups: 3 } prometheus: endpoint: 0.0.0.0:8889 # service.name/namespace become job/instance automatically; also lift the family identity triple. resource_constant_labels: included: [service.name, service.namespace, service.instance.id, site.id, node.role, host.name] metric_expiration: 15m service: extensions: [health_check] telemetry: logs: level: info pipelines: metrics: receivers: [otlp] processors: [memory_limiter, batch] exporters: [debug, file/metrics, prometheus] traces: receivers: [otlp] processors: [memory_limiter, batch] exporters: [debug, file/traces] logs: receivers: [otlp] processors: [memory_limiter, batch] exporters: [debug, file/logs]