Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Track vSphere uptime + guest disk on phase-1 proof matrix
rcourtman973cdab880fe
diff --git a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.md b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.mdindex b9cc18f958..1e37860501 100644--- a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.md+++ b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_API_RUNTIME_SPEC.md@@ -223,3 +223,11 @@ need live proof before VMware can be called supported:[Performance Manager Query Perf Composite](https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/sdk/vim25/release/PerformanceManager/moId/QueryPerfComposite/post/)5. recent-task context:[Virtual Machine Get Recent Task](https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/sdk/vim25/release/VirtualMachine/moId/recentTask/get/)+6. guest filesystem usage (drives the `VC-8` workload-table Uptime + DISK+ columns; requires VMware Tools running in the guest):+ [Get Guest Local Filesystem](https://developer.vmware.com/apis/vsphere-automation/latest/vcenter/api/vcenter/vm/vm/guest/local-filesystem/get/)+7. PerformanceManager counter group/name/rollup conventions for+ `sys.uptime.latest` (host + VM, VMX-process uptime, stats level 1) and+ `sys.osUptime.latest` (VM only, guest OS uptime via Tools, stats level+ 4 / real-time interval):+ [PerformanceManager objects and methods](https://techdocs.broadcom.com/us/en/vmware-cis/vsphere/vsphere-sdks-tools/8-0/web-services-sdk-programming-guide/vsphere-performance/performancemanager-objects-and-methods.html)diff --git a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.md b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.mdindex c9cf5fba4f..d25833909e 100644--- a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.md+++ b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.md@@ -147,7 +147,11 @@ of being hard-coded into a support claim up front:2. whether certificate/thumbprint pinning should be required, optional, ordeferred behind the shared TLS contract3. the exact minimum privilege set required for inventory, datastore, alarm,- event, snapshot, and performance reads+ event, snapshot, performance, and guest filesystem reads (the last of+ these covers the `GET /api/vcenter/vm/{vm}/guest/local-filesystem`+ endpoint that backs the canonical workload-table DISK column for+ VMware-backed VMs; first real `VC-8` pass must pin its exact privilege+ so customer setup docs can drop the guess)The session-shape contract is now narrower than that unknown. The companionbackend contract indiff --git a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.mdindex 98fe3e6191..a7ad8aeb71 100644--- a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md+++ b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md@@ -1,6 +1,6 @@# VMware vCenter Phase-1 Proof Matrix-Last updated: 2026-03-31+Last updated: 2026-05-23Status: ACTIVEGovernance surfaces:- `status.json.candidate_lanes.platform-admission-execution`@@ -91,9 +91,12 @@ That dated record should summarize:1. the environment alias and `LOCAL_CAPABILITIES.md` entry used2. `vCenter` version and build information-3. the exact privilege bundle used for the pass-4. pass/fail notes for `VC-0` through `VC-7`-5. captured evidence for projection, alerts/history, and Assistant read+3. the exact privilege bundle used for the pass, including the privilege+ required for `GET /api/vcenter/vm/{vm}/guest/local-filesystem` (the+ guest filesystem read added for `VC-8`'s operational metric surface)+4. pass/fail notes for `VC-0` through `VC-8`+5. captured evidence for projection, alerts/history, Assistant read, and+ the new uptime / guest disk usage cells on the canonical workload table6. explicit confirmation that direct `ESXi`, recovery support, and controlstayed out of scope@@ -166,6 +169,7 @@ Current state as of 2026-03-31:| `VC-5` | Alerts and history floor | Shared alerts can surface VMware alarm and history context || `VC-6` | Assistant read floor | Assistant can inspect canonical VMware-backed resources without VMware-specific tools || `VC-7` | Exclusion integrity | No direct `ESXi`, recovery, or control claim leaks into the shipped behavior or wording |+| `VC-8` | Operational metric surface | Host and VM uptime plus VM guest filesystem usage land on the canonical workload table for VMware-backed resources without silent gaps |## Execution Steps@@ -315,6 +319,96 @@ Current automated coverage:3. `internal/ai/tools/tools_query_test.go`4. `internal/ai/tools/control_resource_test.go`+### `VC-8` Operational Metric Surface++Phase-1's resource projection (`VC-3`) and storage/snapshot visibility+(`VC-4`) prove that VMware-backed entities land as canonical types and that+datastore + snapshot context is readable. They do not, by themselves,+prove that the operational columns the canonical workload table renders for+every other platform — host uptime, VM uptime, VM guest filesystem usage —+actually populate against a real `vCenter`. This scenario locks that gap+explicitly so it cannot slip behind the existing projection pass.++The new code paths under proof here are:++1. PerformanceManager counter additions in `internal/vmware/client_metrics.go`:+ `sys.uptime.latest` for hosts and VMs, and `sys.osUptime.latest` for VMs.+ The mapping prefers guest OS uptime (Tools-reported) and falls back to+ VMX-process uptime when the guest counter is absent.+2. New per-VM REST collector in `internal/vmware/client_topology.go`:+ `GET /api/vcenter/vm/{vm}/guest/local-filesystem`, aggregated across mount+ points into `InventoryMetrics.DiskTotalBytes` / `DiskUsedBytes` /+ `DiskPercent` and projected onto canonical `ResourceMetrics.Disk`.+3. Canonical projection in `internal/vmware/provider.go`: `UptimeSeconds`+ lands on `Resource.Uptime` for hosts and VMs; the disk fields land on+ `metrics.disk` so the shared workload table renders the same shape every+ other platform uses.++Steps:++1. Confirm the candidate vCenter service account can read+ `PerformanceManager.perfCounter` and successfully query+ `sys.uptime.latest` against a sample host and VM.+2. Confirm the same account can issue+ `GET /api/vcenter/vm/{vm}/guest/local-filesystem` against a+ powered-on VM with VMware Tools running, and that the response decodes+ as `map[string]VmGuestLocalFilesystemInfo` (each entry carrying+ `capacity` and `free_space`).+3. Open the vSphere overview page; confirm a powered-on VM row renders a+ real "N days" Uptime cell and a non-empty DISK column with both percent+ and human-readable bytes.+4. Confirm a powered-off VM, a VM with VMware Tools stopped, and a VM the+ service account is not permitted to read for guest operations each+ surface their gap correctly: Uptime / DISK stay blank (not "0" or+ "0 B / 0 B") and the snapshot's enrichment-issues array records a+ non-fatal `unavailable` (Tools missing) or `permission` (insufficient+ privilege) entry rather than failing the entire poll.+5. Confirm `sys.osUptime.latest` is collected when the vCenter is+ configured at statistics level 4 (real-time interval), and that+ the fallback to `sys.uptime.latest` engages cleanly when the level-4+ counter is not exposed.++Pass when:++1. Host and VM `Resource.Uptime` populate against the live vCenter for+ any powered-on entity that vCenter would normally surface uptime for.+2. `metrics.disk` on a powered-on VM with Tools running carries a+ non-zero `Total` and a `Percent` derived from real guest filesystem+ reads, with at least one realistic mount point present.+3. The shared workload table renders these on the vSphere overview without+ the operator having to toggle the Columns menu.+4. Missing-data cases (Tools stopped, VM powered off, privilege gap) flow+ through the existing non-fatal enrichment-issue path with an+ actionable category (`unavailable` for Tools, `permission` for+ privilege) rather than failing the whole poll.+5. The exact privilege required for+ `GET /api/vcenter/vm/{vm}/guest/local-filesystem` is captured in the+ dated proof record so the documented "minimum privilege bundle" can be+ tightened from "guessed" to "verified."++Current automated coverage:++1. `internal/vmware/client_test.go`'s degraded-enrichment test exercises+ the new endpoint's happy path (multi-mount filesystem response) and+ the `unavailableVMGuestInfo` Tools-not-running 503 path.+2. `internal/mock/platform_fixtures_test.go` asserts the synthesized+ uptime + guest disk values flow through the canonical projection for+ powered-on VMs and drop cleanly for powered-off VMs.+3. `frontend-modern/src/hooks/__tests__/useWorkloads.test.ts` asserts+ the `Resource.Uptime` fallback so vSphere uptime lands on+ `WorkloadGuest.uptime` despite vSphere not populating a+ platform-specific carve-out.++Open unknown (track in the dated proof record):++The exact vCenter privilege required for the guest local-filesystem read.+Public documentation does not pin this down, and Pulse's existing+"minimum privilege bundle" entry in+`VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.md` already names privilege+verification as a live-environment unknown. The first real `VC-8` pass+should capture the exact privilege name so subsequent customer setup+docs can ship it explicitly.+## Evidence To CaptureCapture all of the following outside git or in the dated release-control record:diff --git a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_RECORD_TEMPLATE.md b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_RECORD_TEMPLATE.mdindex e30d602d96..1638e3754a 100644--- a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_RECORD_TEMPLATE.md+++ b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_RECORD_TEMPLATE.md@@ -1,7 +1,7 @@# VMware vCenter Phase-1 Proof Record TemplateUse this template when the first real VMware `vCenter` environment is available-and `VC-0` through `VC-7` from+and `VC-0` through `VC-8` from`docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md` arebeing exercised.@@ -173,6 +173,34 @@ Observed:- assistant control still read-only / absent: `yes` or `no`- broader VMware admin-plane promises absent: `yes` or `no`+## Operational Metric Surface (`VC-8`)++Observed:++- `sys.uptime.latest` PerformanceManager counter discovered and queryable:+ `pass` or `fail`+- `sys.osUptime.latest` PerformanceManager counter discovered and queryable+ when statistics level 4 is enabled (real-time interval): `pass`, `fail`,+ or `not-applicable`+- `Resource.Uptime` populated on hosts: `pass` or `fail`+- `Resource.Uptime` populated on powered-on VMs: `pass` or `fail`+- `GET /api/vcenter/vm/{vm}/guest/local-filesystem` returned+ `map[string]VmGuestLocalFilesystemInfo` for a powered-on VM with Tools+ running: `pass` or `fail`+- `metrics.disk` populated on at least one powered-on VM with realistic+ `Total` / `Used` / `Percent`: `pass` or `fail`+- Powered-off VM / Tools-stopped VM / privilege-gap cases each surface+ through the non-fatal enrichment-issue path with an actionable+ category (`unavailable` for Tools, `permission` for privilege) rather+ than failing the whole poll: `pass` or `fail`+- Workload table renders Uptime + DISK cells on the vSphere overview+ without requiring the operator to toggle the Columns menu: `pass` or+ `fail`+- Exact privilege required for guest local-filesystem endpoint observed+ and captured below: `pass` or `fail`+- guest local-filesystem privilege observed: `...`+- notes: `...`+## Captured Evidence- connection-list screenshots or payloads: `...`@@ -181,6 +209,9 @@ Observed:- Assistant read transcript or screenshots: `...`- version/build evidence: `...`- privilege bundle evidence: `...`+- vSphere overview screenshot showing populated Uptime + DISK cells: `...`+- enrichment-issues array payload for a Tools-stopped VM and a+ privilege-restricted VM: `...`## Outcome