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
This commit is contained in:
pulse-triage[bot]
2026-12-02 18:09:21 +00:00
parent fe1bbdec0a
commit 8a0fb632bb
3 changed files with 82 additions and 0 deletions

View File

@@ -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=<id>`
scoped to that host, or search by guest name with `/standalone/vms?q=<name>`.
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 <host>. 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 <host>. 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

View File

@@ -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=<id>`
scoped to that host, or search by guest name with `/standalone/vms?q=<name>`.
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 <host>. 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 <host>. 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

View File

@@ -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=<id>",
"/standalone/vms?q=<name>",
"Unraid, Linux libvirt/KVM, and XCP-ng",
"Telemetry is stale for <host>. CPU, memory, disk, and sensor readings shown are last known values until their agents report again.",
"Host agent telemetry is stale for <host>. 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()