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:
@@ -1,5 +1,11 @@
|
||||
# Observability — current state: MxAccessGateway
|
||||
|
||||
> **2026-11-12 update (scadaproj#13):** this is the pre-adoption 2026-06-01 snapshot. Since then the gateway
|
||||
> exports its metrics via `AddZbTelemetry`; the meter is `ZB.MOM.WW.MxGateway` (seconds), and logging is Serilog.
|
||||
> OTLP export of **metrics and traces** is proven end to end (scratch copy of the deployed windev build; the
|
||||
> `mxgateway.*` gauges and ASP.NET Core spans arrived). The gateway still has no `ActivitySource` of its own.
|
||||
> Evidence: [`2026-11-12-otlp-end-to-end-evidence.md`](../../2026-11-12-otlp-end-to-end-evidence.md).
|
||||
|
||||
Repo: `~/Desktop/MxAccessGateway`. Stack: .NET 10 gateway (x64) + .NET 4.8 worker (**x86**);
|
||||
solution `src/MxGateway.sln`. Telemetry code is concentrated in
|
||||
`src/ZB.MOM.WW.MxGateway.Server/Metrics/` (instruments) and
|
||||
|
||||
@@ -1,5 +1,13 @@
|
||||
# Observability — current state: OtOpcUa
|
||||
|
||||
> **2026-11-12 update (scadaproj#13):** this is the pre-adoption 2026-06-01 snapshot. OtOpcUa now calls
|
||||
> `AddZbTelemetry` (Resource + OTLP opt-in), and OTLP export of **metrics and traces** is proven end to end
|
||||
> against the dev collector (`otopcua.deploy.apply`, `otopcua.opcua.address_space_rebuild`, `otopcua.deploy.*`
|
||||
> metrics arrived). That ends the "tracing no-op" below once `OtOpcUa:Telemetry:Exporter=Otlp` is set. The
|
||||
> Galaxy driver's `galaxy.*` spans and `galaxy.events.*` counters were missing from the allowlists; fixed in
|
||||
> lmxopcua#892 (`master` `db86b996`). Still absent from the Resource: `service.version`, `site.id`, `node.role`
|
||||
> (scadaproj#55). Evidence: [`2026-11-12-otlp-end-to-end-evidence.md`](../../2026-11-12-otlp-end-to-end-evidence.md).
|
||||
|
||||
Repo: `~/Desktop/OtOpcUa`. Stack: .NET 10, Akka.NET, OPC UA; solution `ZB.MOM.WW.OtOpcUa.slnx`.
|
||||
Telemetry code lives in two places: `src/Server/ZB.MOM.WW.OtOpcUa.Host/Observability/` (host-side
|
||||
bootstrap) and `src/Core/ZB.MOM.WW.OtOpcUa.Commons/Observability/` (instruments + enricher).
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# Observability — current state: ScadaBridge
|
||||
|
||||
> **2026-11-12 update (scadaproj#13):** this is the pre-adoption 2026-06-01 snapshot. ScadaBridge now
|
||||
> has the `ZB.MOM.WW.ScadaBridge` meter and `AddZbSerilog`. OTLP export of **metrics and traces** is proven
|
||||
> end to end for a **Site** node (6 `scadabridge.*` instruments, `localdb.oplog.depth`, gRPC-client spans,
|
||||
> with `site.id`/`node.role` on the Resource); the Central role is not yet proven (ScadaBridge#133).
|
||||
> Evidence: [`2026-11-12-otlp-end-to-end-evidence.md`](../../2026-11-12-otlp-end-to-end-evidence.md).
|
||||
|
||||
Repo: `~/Desktop/ScadaBridge`. Stack: .NET 10, Akka.NET, Docker; solution
|
||||
`ZB.MOM.WW.ScadaBridge.slnx`. The telemetry posture is split across a dangling OTel package ref
|
||||
(metrics/traces) and a substantive Serilog setup (logs). All paths relative to repo root.
|
||||
|
||||
Reference in New Issue
Block a user