Align FAQ, Data Flow, and Scheduler Health Help with stalled warnings (#5445)

Document the newly merged dashboard header Updates stalled warning
(#5439, a46964c894) in docs/FAQ.md (mirrored in
frontend-modern/public/docs/FAQ.md) and
docs/monitoring/METRICS_DATA_FLOW.md,
covering standalone /api/health polling cadence (30s/15s/5s),
websocketStateStalled: true precedence below Reconnecting... and
Disconnected, automatic recovery, Connected scope limits, and hosted or
multi-tenant omission.

Remove the dead /workloads route (reverted in v6.0.0-rc.6) and
preview-only
Standalone VMs (/standalone/vms) reference from
docs/monitoring/METRICS_DATA_FLOW.md, aligning with platform-shaped v6
navigation and release-stage documentation rules.

Document PBS poll-scope shared config read-lock release before
diagnostic
logging (#5430, dd86143f55) in docs/api/SCHEDULER_HEALTH.md and add
source-bound regression checks in
scripts/tests/test_alerting_outage_help_docs.py and
scripts/tests/test_watchdog_help_docs.py.

Contract-Neutral: Updates Help documentation, its shipped FAQ mirror,
and documentation regression tests to match already-merged runtime
behavior without changing product code, APIs, auth, or subsystem
contracts.

---
Fleet candidate `20261128T204615Z-product-intelligence` from the
`product-intelligence` lane. Reviewed tip
`ecd5a98324cb576b2b631b74cedf1f694a23be41` on `main`.

[How Pulse handles
triage](https://github.com/rcourtman/Pulse/blob/main/docs/AI_TRANSPARENCY.md)
This commit is contained in:
pulse-triage[bot]
2026-11-28 21:21:46 +00:00
committed by GitHub
6 changed files with 122 additions and 4 deletions

View File

@@ -317,6 +317,21 @@ the gap began and use the [stalled-dashboard checks](TROUBLESHOOTING.md#health-i
before changing a connection. A green Health check or a watchdog heartbeat
does not tell you whether alert rules ran.
On standalone installs, the dashboard header connection badge also checks
`/api/health` periodically while signed in (every 30 seconds once connected with
initial state, every 15 seconds while waiting for the first snapshot or while
disconnected with a reachable backend, and every 5 seconds while reconnecting).
If `/api/health` reports `websocketStateStalled: true` because a shared
WebSocket state build has been held for at least 30 seconds while the socket is
connected or the backend is reachable, the header badge switches to an amber
**Updates stalled** warning (`Backend is reachable, but live dashboard state
updates are stalled.`) and clears automatically once live updates resume. If the
backend itself is unreachable or unhealthy while the socket is down,
**Reconnecting...** or **Disconnected** still takes precedence. A green
**Connected** badge only means live updates are connected (`Live updates are
connected. Source readings may be older.`), and hosted or multi-tenant servers
omit `websocketStateStalled` from public `/api/health`.
| Missing item | Check existing evidence first |
| --- | --- |
| Whole page or resource | Open its platform page, not just Machines. Follow the [current navigation guide](TROUBLESHOOTING.md#old-bookmarks-dont-work) for moved pages and bookmarks. |

View File

@@ -302,7 +302,9 @@ expiry logging release their shared locks before writing diagnostics, and
opportunistic removed-agent tombstone expiry defers cleanup when another host
report or lifecycle operation already holds the lock, so a blocked log sink or
busy sweep does not stall peer polling, host reports, or History reads and
writes.
writes. PBS poll setup also releases the shared config read lock before logging
the copied instance scope, so a stalled log sink does not block configuration
writers or queue unrelated configuration readers.
If no result advanced, read `retry.after` beside the later snapshot's
`updatedAt`. For an `open` or `half_open` breaker, `retryAt` is the earliest

View File

@@ -6,7 +6,7 @@ polling or storage. Keep the same connection, resource and metric in each view.
| Where you see it | Where the readings come from |
| --- | --- |
| **Bars** and live status rows across platform tables | The latest resource state delivered to the page, not a query for stored points. When a provider or agent stops updating, cached rows across Proxmox (including Ceph and replication), Docker (including images, storage, networks, Compose, Swarm, and Active Alerts), TrueNAS (including protection and Health Alerts), Kubernetes (including inventory, record drawers, and Active Alerts), VMware (including Health Signals and Activity), and Physical Disks (Storage tables, **Physical Disks & SMART** cards, linked pool and guest physical disks, and disk drawers) show an amber **Stale data** cue (or amber **Stale** verdict for clear stale disks) and expanded-drawer notice while preserving worse Offline, Degraded, Replace Now, Needs Attention, or alert severity states. Stale physical disk temperatures and SSD life stay muted as last known without triggering live **Running Hot**, and temperature or SMART history charts defer until live reporting recovers. **Storage Pools** also switch clear stale pools to amber **Stale** (leaving **Healthy**, joining **Needs attention** and warning counts, and sorting ahead of fresh healthy pools), while preserving worse explicit pool states (Faulted, Offline, Critical, Failed, Unavailable, Degraded, Warning) and alert headlines with an inline amber **Stale data** cue on both desktop and phones while keeping retained usage bars visible. **Proxmox Backups** (`/proxmox/backups`) adds a page-level stale telemetry banner naming stale PVE or PBS sources, amber **Stale data** header cues on **Backup health** and **Backup jobs**, and scoped stale cues and drawer notices on affected **Coverage** rows, **By date** restore points, and **Backup servers** while ignoring optional stale host agents when provider polling itself is healthy. **Machines** (`/standalone/machines`) and **Standalone VMs** (`/standalone/vms`) surface amber **Stale data** (or `Stale · <age>`) cues and drawer notices when Pulse Agent telemetry stops updating while preserving offline, degraded, and alert states. **Workloads** (`/workloads`) routes stale running Proxmox, vSphere, Docker, and Kubernetes workloads out of **Running** into **Attention**, displays inline **Stale** cues in rows and node group headers while retaining last-known readings, and shows an amber **Readings are stale** notice in the guest drawer without flagging fresh hypervisor telemetry when only an optional linked agent is stale. Keep any stale, last-known, or unavailable indication with the value. |
| **Bars** and live status rows across platform tables | The latest resource state delivered to the page, not a query for stored points. When a provider or agent stops updating, cached rows across Proxmox (including Ceph and replication), Docker (including images, storage, networks, Compose, Swarm, and Active Alerts), TrueNAS (including protection and Health Alerts), Kubernetes (including inventory, record drawers, and Active Alerts), VMware (including Health Signals and Activity), and Physical Disks (Storage tables, **Physical Disks & SMART** cards, linked pool and guest physical disks, and disk drawers) show an amber **Stale data** cue (or amber **Stale** verdict for clear stale disks) and expanded-drawer notice while preserving worse Offline, Degraded, Replace Now, Needs Attention, or alert severity states. Stale physical disk temperatures and SSD life stay muted as last known without triggering live **Running Hot**, and temperature or SMART history charts defer until live reporting recovers. **Storage Pools** also switch clear stale pools to amber **Stale** (leaving **Healthy**, joining **Needs attention** and warning counts, and sorting ahead of fresh healthy pools), while preserving worse explicit pool states (Faulted, Offline, Critical, Failed, Unavailable, Degraded, Warning) and alert headlines with an inline amber **Stale data** cue on both desktop and phones while keeping retained usage bars visible. **Proxmox Backups** (`/proxmox/backups`) adds a page-level stale telemetry banner naming stale PVE or PBS sources, amber **Stale data** header cues on **Backup health** and **Backup jobs**, and scoped stale cues and drawer notices on affected **Coverage** rows, **By date** restore points, and **Backup servers** while ignoring optional stale host agents when provider polling itself is healthy. **Machines** (`/standalone/machines`) surfaces amber **Stale data** (or `Stale · <age>`) cues and drawer notices when Pulse Agent telemetry stops updating while preserving offline, degraded, and alert states. **Workloads** (VMs and containers across the Proxmox, vSphere, Docker, and Kubernetes pages) routes stale running and stopped workloads out of **Running** into **Attention**, displays inline **Stale** cues in rows and node group headers while retaining last-known readings, and shows an amber **Readings are stale** notice in the guest drawer without flagging fresh hypervisor telemetry when only an optional linked agent is stale. Keep any stale, last-known, or unavailable indication with the value. |
| **Trends** in a workload or Proxmox node table | A separate server chart read. Workload summaries use `/api/charts/workloads` and node summaries use `/api/charts/infrastructure`. Some row previews read history for just that resource. The browser can retain an earlier result for the same selection while it refreshes. |
| **Overview** charts in a resource drawer (or **History** on older layouts) | A read of `/api/metrics-store/history` for the selected resource and range. Check the chart's source label and observation time. A current or recent-only fallback is not stored coverage, and an empty range is not measured zero. |
@@ -33,6 +33,17 @@ and [what retention keeps](../METRICS_HISTORY.md#retention-and-accessible-range)
across its normal interval. Check agent reports and alert evaluation
separately. A poll for one connection or a point for one resource does not
prove that the other paths advanced.
- **The header badge shows Updates stalled.** On standalone installs, the
dashboard periodically checks `/api/health` while signed in and switches the
header connection badge to amber **Updates stalled** (`Backend is reachable,
but live dashboard state updates are stalled.`) whenever
`websocketStateStalled: true` is reported while the socket is connected or
the backend is healthy, clearing automatically when live updates resume.
**Reconnecting...** and **Disconnected** still take precedence if the backend
is unreachable or unhealthy while the socket is down. A green **Connected**
badge only means live updates are connected, not that source readings are
fresh, and hosted or multi-tenant deployments omit `websocketStateStalled`
from public `/api/health`.
Use the readings already available. Do not restart Pulse, clear history or
change polling or retention just to make the views agree. If you report a

View File

@@ -317,6 +317,21 @@ the gap began and use the [stalled-dashboard checks](TROUBLESHOOTING.md#health-i
before changing a connection. A green Health check or a watchdog heartbeat
does not tell you whether alert rules ran.
On standalone installs, the dashboard header connection badge also checks
`/api/health` periodically while signed in (every 30 seconds once connected with
initial state, every 15 seconds while waiting for the first snapshot or while
disconnected with a reachable backend, and every 5 seconds while reconnecting).
If `/api/health` reports `websocketStateStalled: true` because a shared
WebSocket state build has been held for at least 30 seconds while the socket is
connected or the backend is reachable, the header badge switches to an amber
**Updates stalled** warning (`Backend is reachable, but live dashboard state
updates are stalled.`) and clears automatically once live updates resume. If the
backend itself is unreachable or unhealthy while the socket is down,
**Reconnecting...** or **Disconnected** still takes precedence. A green
**Connected** badge only means live updates are connected (`Live updates are
connected. Source readings may be older.`), and hosted or multi-tenant servers
omit `websocketStateStalled` from public `/api/health`.
| Missing item | Check existing evidence first |
| --- | --- |
| Whole page or resource | Open its platform page, not just Machines. Follow the [current navigation guide](TROUBLESHOOTING.md#old-bookmarks-dont-work) for moved pages and bookmarks. |

View File

@@ -564,12 +564,70 @@ class AlertingOutageHelpDocsTest(unittest.TestCase):
"**Proxmox Backups** (`/proxmox/backups`) adds a page-level stale telemetry banner naming stale PVE or PBS sources",
"amber **Stale data** header cues on **Backup health** and **Backup jobs**",
"scoped stale cues and drawer notices on affected **Coverage** rows, **By date** restore points, and **Backup servers**",
"**Machines** (`/standalone/machines`) and **Standalone VMs** (`/standalone/vms`) surface amber **Stale data** (or `Stale · <age>`) cues and drawer notices",
"**Workloads** (`/workloads`) routes stale running Proxmox, vSphere, Docker, and Kubernetes workloads out of **Running** into **Attention**",
"**Machines** (`/standalone/machines`) surfaces amber **Stale data** (or `Stale · <age>`) cues and drawer notices",
"**Workloads** (VMs and containers across the Proxmox, vSphere, Docker, and Kubernetes pages) routes stale running and stopped workloads out of **Running** into **Attention**",
"amber **Readings are stale** notice in the guest drawer without flagging fresh hypervisor telemetry when only an optional linked agent is stale",
):
with self.subTest(phrase=phrase):
self.assertIn(phrase, flow_doc)
self.assertNotIn("`/workloads`", flow_doc)
self.assertNotIn("/standalone/vms", flow_doc)
self.assertNotIn("Standalone VMs", flow_doc)
def test_help_documents_dashboard_header_updates_stalled_warning(self) -> None:
runtime_src = (
ROOT / "frontend-modern/src/useAppRuntimeState.ts"
).read_text(encoding="utf-8")
layout_src = (ROOT / "frontend-modern/src/AppLayout.tsx").read_text(
encoding="utf-8"
)
router_src = (ROOT / "internal/api/router.go").read_text(encoding="utf-8")
hub_src = (ROOT / "internal/websocket/hub.go").read_text(encoding="utf-8")
for marker in (
"label: 'Updates stalled'",
"detail: 'Backend is reachable, but live dashboard state updates are stalled.'",
"detail: 'Live updates are connected. Source readings may be older.'",
"if (websocketStateStalled() && (connected() || backendHealthy())) {",
"isConnected ? (resolved ? 30000 : 15000) : reconnecting() ? 5000 : 15000",
):
self.assertIn(marker, runtime_src)
self.assertIn("export function ConnectionStatusBadge(", layout_src)
self.assertIn(
"if r.wsHub != nil && !r.hostedMode && !IsMultiTenantEnabled() {",
router_src,
)
self.assertIn("stateBuildStallThreshold = 30 * time.Second", hub_src)
faq_doc = (ROOT / "docs/FAQ.md").read_text(encoding="utf-8")
faq_mirror = (
ROOT / "frontend-modern/public/docs/FAQ.md"
).read_text(encoding="utf-8")
self.assertEqual(faq_doc, faq_mirror)
faq_norm = " ".join(faq_doc.split())
for phrase in (
"every 30 seconds once connected with initial state, every 15 seconds while waiting for the first snapshot or while disconnected with a reachable backend, and every 5 seconds while reconnecting",
"If `/api/health` reports `websocketStateStalled: true` because a shared WebSocket state build has been held for at least 30 seconds while the socket is connected or the backend is reachable",
"amber **Updates stalled** warning (`Backend is reachable, but live dashboard state updates are stalled.`) and clears automatically once live updates resume",
"**Reconnecting...** or **Disconnected** still takes precedence",
"A green **Connected** badge only means live updates are connected (`Live updates are connected. Source readings may be older.`), and hosted or multi-tenant servers omit `websocketStateStalled` from public `/api/health`",
):
with self.subTest(doc="FAQ.md", phrase=phrase):
self.assertIn(phrase, faq_norm)
flow_norm = " ".join(
(ROOT / "docs/monitoring/METRICS_DATA_FLOW.md")
.read_text(encoding="utf-8")
.split()
)
for phrase in (
"**The header badge shows Updates stalled.**",
"amber **Updates stalled** (`Backend is reachable, but live dashboard state updates are stalled.`) whenever `websocketStateStalled: true` is reported while the socket is connected or the backend is healthy, clearing automatically when live updates resume",
"**Reconnecting...** and **Disconnected** still take precedence if the backend is unreachable or unhealthy while the socket is down",
"hosted or multi-tenant deployments omit `websocketStateStalled` from public `/api/health`",
):
with self.subTest(doc="METRICS_DATA_FLOW.md", phrase=phrase):
self.assertIn(phrase, flow_norm)
def test_alert_api_and_alerting_help_align_with_bounds_and_recovery_hardening(
self,

View File

@@ -321,6 +321,23 @@ class WatchdogHelpDocsTest(unittest.TestCase):
history_src.index("mh.mu.Unlock()\n\tlog.Debug()"),
history_src.index('Msg("Cleaned up stale metrics history entries")'),
)
pbs_pmg_src = (
ROOT / "internal/monitoring/monitor_pbs_pmg.go"
).read_text(encoding="utf-8")
pbs_poll_fn = pbs_pmg_src.split(
"func (m *Monitor) pollPBSInstance(", 1
)[1].split("\nfunc ", 1)[0]
self.assertLess(
pbs_poll_fn.index("config.Mu.RUnlock()"),
pbs_poll_fn.index('Msg("Found PBS instance config")'),
)
scheduler_doc = plain(
(ROOT / "docs/api/SCHEDULER_HEALTH.md").read_text(encoding="utf-8")
)
self.assertIn(
"PBS poll setup also releases the shared config read lock before logging the copied instance scope, so a stalled log sink does not block configuration writers or queue unrelated configuration readers",
scheduler_doc,
)
if __name__ == "__main__":