e1a2df83f7
- 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
66 lines
2.0 KiB
YAML
66 lines
2.0 KiB
YAML
# 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]
|