docs(grpc-data): H4 review 3 — origin history reads are counted per item per wire call

This commit is contained in:
Joseph Doherty
2026-11-24 08:37:58 -05:00
parent 005720bd02
commit b5509dfc48
2 changed files with 9 additions and 7 deletions
+5 -4
View File
@@ -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"). |
@@ -18,9 +18,10 @@ public sealed record ConsumerHistoryCounts(long Good, long Uncertain, long Bad,
/// <remarks>
/// <para>Metrics, on <see cref="OtOpcUaTelemetry.Meter"/>, never carry an id in a label:</para>
/// <list type="bullet">
/// <item><see cref="ReadsCounterName"/> — one per history item answered, tagged <c>variant</c> (raw | processed | attime),
/// <c>status_class</c> (good | uncertain | bad) and <c>side</c> (origin = served to a peer; consumer = a projected node's
/// answer to a local OPC UA client). A node can be both, so <c>side</c> keeps the two from being summed.</item>
/// <item><see cref="ReadsCounterName"/> — tagged <c>variant</c> (raw | processed | attime | modified),
/// <c>status_class</c> (good | uncertain | bad) and <c>side</c>: 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 <c>side</c> keeps the two from being summed.</item>
/// <item><see cref="ContinuationsGaugeName"/> — open remote continuations, tagged <c>side</c>: origin cursors held for
/// peers, and consumer cursors held in local OPC UA sessions (created, neither resumed nor released).</item>
/// </list>