Show cluster health in the Technitium DNS integration

Reads /api/admin/cluster/state (Technitium 14+): a Cluster table on the page,
alerts for a node unreachable for ten minutes (primary critical) and for a
secondary that has stopped taking the primary's configuration, and three
/metrics series. A server in no cluster shows nothing; a token that may not
view administration is told so and the rest of the read is unaffected.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-08 23:37:11 +01:00
1 parent 1ef686d1ba
commit d78aba8bf9
15 files changed
+9423 -15

No files matched your search

+15
View File
@@ -1724,6 +1724,21 @@ export interface TechnitiumInstance {
/** The real DNS question put to it. */
probe: { ok: boolean; ms: number | null; error: string | null; name: string; host: string } | null;
probeFailSince: string | null;
/** The cluster it belongs to (Technitium 14 and later); null when it was never asked. */
cluster: {
/** Null: not in a cluster, or it could not be read (then `note` says why). */
info: {
domain: string | null;
thisNode: string | null;
heartbeatSeconds: number | null;
configRefreshSeconds: number | null;
/** When this node last took its configuration from the primary (a secondary only). */
configLastSynced: string | null;
nodes: { id: number | null; name: string; type: string; state: string; url: string | null; version: string | null; lastSeen: string | null; ipAddresses: string[] }[];
} | null;
note: string | null;
unreachableSince: Record<string, string>;
} | null;
updatedAt: string;
/** How long ago the block lists were due for an update, when that is overdue; null otherwise. */
blockListsOverdueMs: number | null;