Merge historian follow-up (#1089): HistorianUnreachable on /alarms-historian + otopcua.alarm_historian.unreachable gauge; per-writer reachability tests; SqlServer writer no longer counts login/connection failures as answered
This commit is contained in:
@@ -309,6 +309,11 @@ last write attempt the historian *answered* (success or a data-level refusal; a
|
||||
the historian answered within the last 5 minutes ⇒ **`Stalled`** (a stuck head); it has not ⇒
|
||||
**`HistorianUnreachable`** (rows are merely held; `Stalled` stays false, the `queue.stalled` gauge reads 0, the
|
||||
Warning says "HELD by a historian outage", and the readiness check is still **Degraded** with an outage description).
|
||||
**#1089:** the AdminUI page (`/alarms-historian`) shows a red **Historian unreachable** badge for the outage and an amber
|
||||
**Queue stalled** badge for a stuck head (mutually exclusive); the gauge `otopcua.alarm_historian.unreachable` (1/0, same
|
||||
meter, next to `queue.stalled`) reads 1 only for the outage. The SqlServer writer counts a statement-level refusal as an
|
||||
answer but NOT a login failure / refused connection / pool exhaustion (`SqlServerAlarmHistorianWriter.Answered`, via
|
||||
`IsOutage` — it used `!IsTransient`, which counted those as reachable); QuestDB likewise excludes SQLSTATE class 08/28/53/57.
|
||||
A writer that does not report reachability keeps the #1034 behaviour (stalled also fires on an outage; `LastError` says
|
||||
which). A node that is not the drain owner is never stalled and promotion restarts the clock.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user