diff --git a/docs/DataConnections.md b/docs/DataConnections.md index ccb9d0ca3..1dc5e0961 100644 --- a/docs/DataConnections.md +++ b/docs/DataConnections.md @@ -275,15 +275,16 @@ The cluster's **Data connections** page (`/clusters/{id}/data-connections`) show - **Negotiated features** — what the last capability handshake negotiated for the data calls (`History`, or "none (v1 behaviour)" against an origin without a historian backend or older than H2), and the **origin history** it advertised to this caller: the variants (`raw`, `processed`, `attime`) and the aggregate count, or "not advertised". -- **Projected history reads** by status class (good / uncertain / bad) — one per projected node as answered to a local - OPC UA client, since process start (refusals before a node resolves to a connection are counted in the metric only). +- **Projected history reads** by status class (good / uncertain / bad) — one per projected node per local OPC UA HistoryRead, + with the status the client got, since process start (a node that no longer resolves to a connection is counted in the + metric only). - **Open remote continuations (local sessions)** — projected-history continuation points held in local OPC UA sessions: issued, not yet resumed or released (a release, a session close or an eviction settles them). - **Dropped unknown operation bits** — the X0 drops for that connection and how many of its mappings had bits dropped. And per node, under **Origin evidence by node**: whether the node serves remote history (has a historian backend), the live peer history sessions, the **open origin continuations** (page cursors and chunk remainders held for peers), the history items it -answered by status class, and its exports with dropped unknown operation bits. +answered by status class (per wire call: a chunked page's follow-up calls count again), and its exports with dropped unknown operation bits. All counts are since process start and reset on restart. "Unavailable" means the node did not report the measure (built before H4, or no data-connection services) — never zero activity. The origin's data services are created on the first peer call, @@ -295,7 +296,7 @@ connection, node or principal id in a label: | Instrument | Type | Labels | Meaning | |---|---|---|---| -| `otopcua.dataconn.history.reads` | counter `{item}` | `variant` = raw \| processed \| attime, `status_class` = good \| uncertain \| bad, `side` = origin \| consumer | Origin: one per history item answered to a peer (refusals included). Consumer: one per projected node answered to a local OPC UA client. A node can be both, so `side` keeps them apart. | +| `otopcua.dataconn.history.reads` | counter `{item}` | `variant` = raw \| processed \| attime (\| modified, consumer only), `status_class` = good \| uncertain \| bad, `side` = origin \| consumer | Origin: one per item **per wire call** answered to a peer (refusals included) — a chunked answer's follow-up calls for the same page count again, so this measures served item-calls, not logical reads. Consumer: one per projected node per OPC UA HistoryRead, with the status the client got (refusals before any remote call included; a request that faults counts every projected node Bad). A node can be both, so `side` keeps them apart. | | `otopcua.dataconn.history.continuations.active` | gauge `{continuation}` | `side` = origin \| consumer | Origin: cursors held for peers. Consumer: cursors held in local sessions. | | `otopcua.dataconnection.unknown_operations_dropped` | counter `{row}` | `kind` = connection \| export \| mapping | The plan's `…operations.unknown_bits_dropped`: the X0 counter is reused rather than duplicated (see "Mixed versions"). | diff --git a/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/DataConnections/DataConnectionHistoryDiagnostics.cs b/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/DataConnections/DataConnectionHistoryDiagnostics.cs index b0f533bc4..00754845f 100644 --- a/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/DataConnections/DataConnectionHistoryDiagnostics.cs +++ b/src/Server/ZB.MOM.WW.OtOpcUa.Runtime/DataConnections/DataConnectionHistoryDiagnostics.cs @@ -18,9 +18,10 @@ public sealed record ConsumerHistoryCounts(long Good, long Uncertain, long Bad, /// /// Metrics, on , never carry an id in a label: /// -/// — one per history item answered, tagged variant (raw | processed | attime), -/// status_class (good | uncertain | bad) and side (origin = served to a peer; consumer = a projected node's -/// answer to a local OPC UA client). A node can be both, so side keeps the two from being summed. +/// — tagged variant (raw | processed | attime | modified), +/// status_class (good | uncertain | bad) and side: origin = one per item per WIRE CALL served to a peer (a +/// chunked page's follow-up calls count again); consumer = one per projected node per local OPC UA HistoryRead, with the +/// status the client got. A node can be both, so side keeps the two from being summed. /// — open remote continuations, tagged side: origin cursors held for /// peers, and consumer cursors held in local OPC UA sessions (created, neither resumed nor released). ///