From 8a0fb632bb17387ebd34c0312e4e9cb71f4a93c8 Mon Sep 17 00:00:00 2001 From: "pulse-triage[bot]" <249995291+pulse-triage[bot]@users.noreply.github.com> Date: Wed, 2 Dec 2026 18:09:21 +0000 Subject: [PATCH] Document Machines VMs and stale host telemetry in Unified Agent Help Documents the Stage 5 released Machines -> VMs (/standalone/vms) tab and the stale host-agent warning banners on Machines and Machines -> VMs, synced to frontend-modern/public/docs/UNIFIED_AGENT.md and locked with a runtime-alignment test in scripts/tests/test_agent_docs.py. Contract-Neutral: Help documentation alignment and doc-contract test only; no runtime, API, or subsystem behavior changes. Change-source: pulse-maintainer --- docs/UNIFIED_AGENT.md | 19 +++++++++ frontend-modern/public/docs/UNIFIED_AGENT.md | 19 +++++++++ scripts/tests/test_agent_docs.py | 44 ++++++++++++++++++++ 3 files changed, 82 insertions(+) diff --git a/docs/UNIFIED_AGENT.md b/docs/UNIFIED_AGENT.md index 6765938be7..1a8846a7ed 100644 --- a/docs/UNIFIED_AGENT.md +++ b/docs/UNIFIED_AGENT.md @@ -389,6 +389,25 @@ successful inventory while normal host metrics continue to report. This local integration covers one XCP-ng pool. Multi-pool deployments that need a central Xen Orchestra connection remain a separate integration surface. +### Viewing standalone VMs and stale host telemetry + +Virtual machines reported by standalone Pulse Agents (Unraid, Linux libvirt/KVM, +and XCP-ng) appear automatically under **Machines → VMs** (`/standalone/vms`). +Select a host's VM count cue on **Machines** to open `/standalone/vms?host=` +scoped to that host, or search by guest name with `/standalone/vms?q=`. + +When a standalone host agent stops reporting on time, Pulse qualifies the cached +readings rather than presenting them as live: + +- On **Machines**, an inline warning banner above the table reports + `Telemetry is stale for . CPU, memory, disk, and sensor readings shown are last known values until their agents report again.`, + and affected hosts appear under **Degraded** with an inline `stale` cue and + drawer notice until the agent reports again. +- On **Machines → VMs**, an inline warning banner above the VMs table reports + `Host agent telemetry is stale for . VM states and metrics shown for affected guests are last known values.`, + and affected guests carry an inline `stale` cue until their host agent + recovers. + ### Windows CPU and motherboard temperatures Windows does not expose dependable built-in CPU or motherboard temperature diff --git a/frontend-modern/public/docs/UNIFIED_AGENT.md b/frontend-modern/public/docs/UNIFIED_AGENT.md index 6765938be7..1a8846a7ed 100644 --- a/frontend-modern/public/docs/UNIFIED_AGENT.md +++ b/frontend-modern/public/docs/UNIFIED_AGENT.md @@ -389,6 +389,25 @@ successful inventory while normal host metrics continue to report. This local integration covers one XCP-ng pool. Multi-pool deployments that need a central Xen Orchestra connection remain a separate integration surface. +### Viewing standalone VMs and stale host telemetry + +Virtual machines reported by standalone Pulse Agents (Unraid, Linux libvirt/KVM, +and XCP-ng) appear automatically under **Machines → VMs** (`/standalone/vms`). +Select a host's VM count cue on **Machines** to open `/standalone/vms?host=` +scoped to that host, or search by guest name with `/standalone/vms?q=`. + +When a standalone host agent stops reporting on time, Pulse qualifies the cached +readings rather than presenting them as live: + +- On **Machines**, an inline warning banner above the table reports + `Telemetry is stale for . CPU, memory, disk, and sensor readings shown are last known values until their agents report again.`, + and affected hosts appear under **Degraded** with an inline `stale` cue and + drawer notice until the agent reports again. +- On **Machines → VMs**, an inline warning banner above the VMs table reports + `Host agent telemetry is stale for . VM states and metrics shown for affected guests are last known values.`, + and affected guests carry an inline `stale` cue until their host agent + recovers. + ### Windows CPU and motherboard temperatures Windows does not expose dependable built-in CPU or motherboard temperature diff --git a/scripts/tests/test_agent_docs.py b/scripts/tests/test_agent_docs.py index 62b9494f6d..86abf561af 100644 --- a/scripts/tests/test_agent_docs.py +++ b/scripts/tests/test_agent_docs.py @@ -526,6 +526,50 @@ Path(os.environ['HOME'], '.config/pulse/agent-install.sh').write_text('other sav with self.subTest(doc=name, phrase=phrase): self.assertIn(phrase, normalized) + def test_standalone_vms_and_stale_telemetry_help_match_runtime(self): + feature_releases = json.loads( + (ROOT / "frontend-modern/src/utils/featureReleases.json").read_text(encoding="utf-8") + ) + self.assertEqual(feature_releases["standaloneVms"]["stage"], "released") + + staleness_ts = ( + ROOT / "frontend-modern/src/features/standalone/standaloneStaleness.ts" + ).read_text(encoding="utf-8") + self.assertIn( + "Telemetry is stale for ${list}. CPU, memory, disk, and sensor readings shown are last known values until their agents report again.", + staleness_ts, + ) + self.assertIn( + "Host agent telemetry is stale for ${list}. VM states and metrics shown for affected guests are last known values.", + staleness_ts, + ) + + surface_tsx = ( + ROOT / "frontend-modern/src/features/standalone/StandalonePageSurface.tsx" + ).read_text(encoding="utf-8") + self.assertIn( + "Virtual machines reported by standalone Pulse Agents (Unraid, Linux libvirt/KVM, and XCP-ng) appear here automatically.", + surface_tsx, + ) + + src_bytes = (ROOT / "docs/UNIFIED_AGENT.md").read_bytes() + self.assertEqual( + src_bytes, + (ROOT / "frontend-modern/public/docs/UNIFIED_AGENT.md").read_bytes(), + ) + normalized = " ".join(src_bytes.decode("utf-8").split()) + for phrase in ( + "Machines → VMs", + "/standalone/vms", + "/standalone/vms?host=", + "/standalone/vms?q=", + "Unraid, Linux libvirt/KVM, and XCP-ng", + "Telemetry is stale for . CPU, memory, disk, and sensor readings shown are last known values until their agents report again.", + "Host agent telemetry is stale for . VM states and metrics shown for affected guests are last known values.", + ): + with self.subTest(phrase=phrase): + self.assertIn(phrase, normalized) + if __name__ == "__main__": unittest.main()