Skip to content

armgit / Pulse

Public Imported from GitHub
0

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.

Lock VMware vCenter projection contract

rcourtmanaaba76f7d94b
diff --git a/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md b/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md
index 5cddf12210..5e36b331d9 100644
--- a/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md
+++ b/docs/release-control/v6/internal/SOURCE_OF_TRUTH.md
@@ -524,6 +524,11 @@ acceptable phase-1 model if implementation starts.
`docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md`
as the concrete slice order and stop/go contract for the first admitted
VMware support floor.
+10. Projection contract:
+ If implementation starts, it should also follow
+ `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_RESOURCE_PROJECTION_SPEC.md`
+ as the canonical source, identity, topology, alert-mapping, and
+ non-projection boundary for phase-1 VMware resources.
## Cross-Repo Contracts
diff --git a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md
index 623b6d6f6c..c16bdf49ea 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
@@ -6,6 +6,7 @@ Governance surfaces:
- `status.json.candidate_lanes.platform-admission-execution`
- `docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md`
- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_ONBOARDING_SPEC.md`
+- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_RESOURCE_PROJECTION_SPEC.md`
Use this matrix for the trust-critical boundary between:
@@ -137,7 +138,8 @@ Pass when:
1. Let the VMware poller collect from the saved connection.
2. Inspect the infrastructure/workload/storage surfaces or canonical APIs.
-3. Confirm hosts, VMs, and datastores are visible.
+3. Compare the observed resources against the governed projection spec.
+4. Confirm hosts, VMs, and datastores are visible.
Pass when:
@@ -146,6 +148,8 @@ Pass when:
3. datastores land as canonical `storage`
4. no provider-local top-level `esxi-host`, `vsphere-vm`, or equivalent type
appears
+5. topology metadata stays metadata and does not appear as synthetic top-level
+ VMware resource types
### `VC-4` Storage And Snapshot Visibility
diff --git a/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_RESOURCE_PROJECTION_SPEC.md b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_RESOURCE_PROJECTION_SPEC.md
new file mode 100644
index 0000000000..014d469182
--- /dev/null
+++ b/docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_RESOURCE_PROJECTION_SPEC.md
@@ -0,0 +1,300 @@
+# VMware vCenter Phase-1 Resource Projection Spec
+
+Last updated: 2026-03-30
+Status: PLANNED
+Governance surfaces:
+- `status.json.candidate_lanes.platform-admission-execution`
+- `docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md`
+- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md`
+
+## Intent
+
+This document locks the canonical phase-1 projection contract for
+`vmware-vsphere`.
+
+It exists to answer one architecture question before runtime work starts:
+what exactly from `vCenter` becomes a shared Pulse resource, what stays
+topology-only metadata, and what must not be projected at all in phase 1.
+
+## Governing Rule
+
+Phase-1 VMware support is only valid if all of these stay true:
+
+1. `vCenter` is the only supported phase-1 entry point
+2. ingestion is `api-backed`
+3. ESXi hosts project as canonical `agent`
+4. virtual machines project as canonical `vm`
+5. datastores project as canonical `storage`
+6. datacenter, cluster, folder, resource pool, and `vCenter` itself remain
+ topology or relationship metadata, not top-level Pulse resources
+7. `physical-disk`, `system-container`, `app-container`, and recovery
+ artifacts remain out of phase 1
+
+## Canonical Source Contract
+
+When runtime work starts, Pulse should add one canonical VMware-backed source
+classification alongside the existing shared source enums.
+
+That means:
+
+1. one shared VMware source key, expected to land as `vmware` /
+ `SourceVMware`, not separate `vcenter` and `esxi` source families
+2. `platformType` should be `vmware-vsphere` on projected VMware-backed
+ canonical resources
+3. `vCenter` is the connection authority, not a top-level unified resource
+4. the saved connection or discovered vCenter identity should scope every
+ VMware provider identifier so bare managed-object IDs do not masquerade as
+ workspace-global identities
+
+The last point is an implementation inference from the official APIs: the docs
+describe host, VM, and datastore identifiers as resource-type identifiers, but
+they do not claim those identifiers are globally unique across multiple
+distinct `vCenter` environments.
+
+## Projection Table
+
+| VMware object class | Canonical Pulse type | Phase-1 floor | Top-level? | Notes |
+| --- | --- | --- | --- | --- |
+| `HostSystem` / ESXi host | `agent` | yes | yes | host inventory, runtime state, health, metrics/history |
+| `VirtualMachine` | `vm` | yes | yes | workload inventory, runtime state, guest identity when available, snapshot-tree visibility |
+| `Datastore` | `storage` | yes | yes | inventory, capacity/free-space, accessibility, relationships |
+| `vCenter` | none | no | no | connection and poll authority only |
+| `Datacenter` | none | metadata only | no | placement and topology context |
+| `ClusterComputeResource` | none | metadata only | no | placement and grouping context |
+| `Folder` | none | metadata only | no | inventory placement context |
+| `ResourcePool` | none | metadata only | no | workload placement context |
+| snapshot tree | none | read-side VM detail only | no | not a recovery artifact |
+| alarm definitions / triggered alarms | `alerts` / incident context | yes | n/a | routed through shared alert and timeline surfaces |
+| events / tasks | resource timeline / incident context | yes | n/a | supporting context, not new resource types |
+
+## ESXi Host To `agent`
+
+What the APIs clearly support:
+
+1. the vCenter host summary surface exposes a host identifier, name,
+ connection state, power state, and in newer API versions `host_uuid`
+2. VI JSON host runtime exposes connection state, power state, maintenance
+ mode, and health runtime state
+3. VI JSON host summaries expose overall alarm status plus storage and CPU
+ status summaries
+
+Phase-1 projection rule:
+
+1. one ESXi host from `vCenter` becomes one canonical `agent`
+2. the provider-scoped host identifier is the VMware-side primary identity for
+ that resource inside the VMware source
+3. the canonical `agent` display identity should come from the host name, not
+ from cluster or datacenter labels
+4. cluster, datacenter, folder, and resource-pool context stay in
+ VMware-specific platform metadata or relationships under that canonical
+ `agent`
+
+Required secondary identity capture when available:
+
+1. `host_uuid`
+2. hostname / DNS name
+3. IP addresses when the chosen collection path can read them cleanly
+4. any future shared agent-augmentation identity fields only through the
+ canonical cross-source merge path, not through a VMware-only dedupe model
+
+Validation note:
+
+The official `Vcenter Host Summary` schema adds `host_uuid` in vSphere API
+9.0.0.0. Older supported floors may therefore need fallback identity anchors
+from VI JSON host properties. That cross-version identity floor must be proven
+before a support claim is made.
+
+## Virtual Machine To `vm`
+
+What the APIs clearly support:
+
+1. `GET /api/vcenter/vm` returns VM identifier, name, power state, CPU count,
+ and memory size
+2. `GET /api/vcenter/vm/{vm}` returns optional `identity.bios_uuid` and
+ `identity.instance_uuid`
+3. `GET /api/vcenter/vm/{vm}/guest/identity` returns guest OS family, guest
+ hostname, and IP address when VMware Tools is running and has data
+4. VI JSON `VirtualMachine.snapshot` returns the current snapshot and snapshot
+ tree when snapshots exist
+
+Phase-1 projection rule:
+
+1. one VMware virtual machine becomes one canonical `vm`
+2. the provider-scoped VM identifier is the VMware-side primary identity for
+ that resource inside the VMware source
+3. `instance_uuid` and `bios_uuid` should be captured as secondary identities
+ whenever present because they are the cleanest future bridge to cross-source
+ merge or assistant reasoning
+4. guest hostname and guest IP are optional enrichments, not identity
+ requirements, because the guest-identity API can fail when VMware Tools is
+ absent or not reporting
+5. host placement, folder placement, resource-pool membership, and datastore
+ attachments stay as relationships or platform metadata under the canonical
+ `vm`
+
+Snapshot boundary:
+
+1. snapshot tree is valid phase-1 workload detail
+2. snapshot presence may feed timeline or investigation context
+3. snapshot data must not be promoted into shared recovery artifacts, restore
+ points, or recovery-supported product wording
+
+## Datastore To `storage`
+
+What the APIs clearly support:
+
+1. `GET /api/vcenter/datastore` returns datastore identifier, name, type,
+ free-space, and capacity
+2. VI JSON `DatastoreSummary` exposes `accessible`, `multipleHostAccess`,
+ `maintenanceMode`, `capacity`, `freeSpace`, and `url`
+
+Phase-1 projection rule:
+
+1. one datastore becomes one canonical `storage`
+2. the provider-scoped datastore identifier is the VMware-side primary
+ identity for that resource inside the VMware source
+3. display identity should come from datastore name
+4. datastore type, accessibility, maintenance mode, and multi-host access are
+ part of the shared storage-facing truth when the upstream environment
+ exposes them
+5. host attachments and VM usage stay as relationships under canonical
+ `storage`, not as new top-level VMware objects
+
+Validation note:
+
+Datastore inventory and headline capacity are clearly supported from the
+official APIs. Exact phase-1 extraction of host mounts and VM-to-datastore
+usage needs live validation so Pulse does not promise more placement fidelity
+than the chosen collection path can actually deliver.
+
+## Topology And Relationship Rules
+
+These VMware concepts remain metadata or relationships in phase 1:
+
+1. `vCenter`
+2. datacenter
+3. cluster
+4. folder
+5. resource pool
+6. datastore cluster / storage pod
+7. network objects
+
+That means phase-1 VMware work must not add:
+
+1. `esxi-host`
+2. `vsphere-vm`
+3. `vsphere-datastore`
+4. `vsphere-cluster`
+5. `vsphere-datacenter`
+6. `vsphere-resource-pool`
+
+If a future slice wants one of those to become top-level, it needs a separate
+governed admission decision because it would expand the shared Pulse resource
+model, not just the VMware adapter.
+
+## Alerts, Incidents, And Timeline
+
+What the APIs clearly support:
+
+1. VI JSON `AlarmManager.GetAlarm` retrieves alarms defined on a managed
+ entity
+2. VI JSON host summaries expose `overallStatus`
+3. VI JSON event and task paths exist for related operational context
+
+Phase-1 alert rule:
+
+1. VMware alarm and health signals may surface only through the shared alert
+ and incident model
+2. alert-backed investigation must attach to canonical `agent`, `vm`, or
+ `storage` resources
+3. cluster-, datacenter-, or folder-scoped VMware alarm context may inform the
+ incident, but it must not create synthetic top-level VMware incident
+ resources in phase 1
+4. event and task context belongs in the shared resource timeline or incident
+ context, not in a VMware-only history surface
+5. direct VMware alarm acknowledgement, reset, or editing is out of scope
+
+## Telemetry And History
+
+What the APIs clearly support:
+
+1. VI JSON `PerformanceManager.QueryPerfComposite` returns composite metrics
+ for a host and its first-level child entities and is explicitly documented
+ for host-plus-VM usage
+2. VM runtime and hardware detail are available through the vCenter VM APIs
+3. datastore free-space and capacity state are available from the datastore
+ inventory APIs
+
+Phase-1 telemetry rule:
+
+1. ESXi host telemetry must land on the shared `agent` metrics/history path
+2. VM telemetry must land on the shared `vm` metrics/history path
+3. datastore state or capacity-history signals must land on the shared
+ `storage` path
+4. phase-1 VMware work must not create a `vmware-host`, `vmware-vm`, or
+ `vmware-datastore` history store
+
+Validation note:
+
+`QueryPerfComposite` is clearly documented for host-plus-child collection, but
+it is not by itself proof of complete standalone VM history parity across the
+whole supported floor. Exact counter coverage, retention shape, and any
+required per-VM follow-up queries must be proven on the live support floor
+before the product makes a broad telemetry/history claim.
+
+## Explicit Phase-1 Non-Projections
+
+Phase 1 must not project any of the following into shared top-level Pulse
+resource types:
+
+1. `physical-disk`
+2. `system-container`
+3. `app-container`
+4. recovery artifact
+5. restore point
+6. backup job
+7. direct ESXi standalone system
+
+That exclusion remains in force even though VMware exposes richer APIs in some
+of those areas.
+
+## Discovery Gaps That Still Matter
+
+The architecture is stable, but these points still require live proof:
+
+1. exact cross-version identity floor for ESXi hosts when `host_uuid` is not
+ available from the chosen supported version
+2. exact relationship extraction path for VM-to-datastore usage and
+ datastore-to-host mount fidelity
+3. exact alarm-to-canonical-resource attachment rule for cluster- or
+ datacenter-scoped alarms
+4. exact performance/history counter set that is strong enough for the shared
+ Pulse history surfaces without inventing VMware-only paths
+
+If those proofs fail, the support claim must narrow or stop. The runtime must
+not compensate by inventing provider-local resource types or sidecar products.
+
+## Primary Source Basis
+
+1. host inventory summary:
+ [Vcenter Host Summary](https://developer.broadcom.com/xapis/vsphere-automation-api/latest/data-structures/Vcenter%20Host%20Summary/)
+2. host runtime and health:
+ [HostRuntimeInfo](https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/data-structures/HostRuntimeInfo/)
+3. host overall alarm and status summaries:
+ [HostListSummary](https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/data-structures/HostListSummary/)
+4. VM inventory:
+ [Vcenter VM list](https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/vcenter/vm/get/)
+5. VM identity detail:
+ [Vcenter VM get](https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/vcenter/vm/vm/get/)
+6. guest identity detail:
+ [Vcenter Vm Guest Identity get](https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/vcenter/vm/vm/guest/identity/get/)
+7. datastore inventory:
+ [Vcenter Datastore list](https://developer.broadcom.com/xapis/vsphere-automation-api/latest/api/vcenter/datastore/get/)
+8. datastore accessibility and storage summary:
+ [DatastoreSummary](https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/data-structures/DatastoreSummary/)
+9. VM snapshot tree:
+ [Virtual Machine Get Snapshot](https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/sdk/vim25/release/VirtualMachine/moId/snapshot/get/)
+10. managed-entity alarms:
+ [Alarm Manager Get Alarm](https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/sdk/vim25/release/AlarmManager/moId/GetAlarm/post/)
+11. host-plus-child performance:
+ [Performance Manager Query Perf Composite](https://developer.broadcom.com/xapis/virtual-infrastructure-json-api/latest/sdk/vim25/release/PerformanceManager/moId/QueryPerfComposite/post/)
diff --git a/docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md b/docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md
index 6f4a0a41a7..85ede62e48 100644
--- a/docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md
+++ b/docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md
@@ -116,10 +116,15 @@ Owners:
- `monitoring`
- `unified-resources`
+Slice contract:
+- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_RESOURCE_PROJECTION_SPEC.md`
+
Deliver:
- API-backed ingest from the official vCenter Automation API plus the Virtual
Infrastructure JSON API
+- one canonical VMware source classification and `platformType:
+ vmware-vsphere` on shared resources instead of provider-local source forks
- stable identity and dedupe for ESXi hosts, VMs, and datastores
- shared-resource projection with no provider-local `esxi-host`,
`vsphere-vm`, or `vsphere-datastore` top-level types
@@ -129,7 +134,7 @@ Deliver:
Required proof:
- one real `vCenter` produces canonical `agent`, `vm`, and `storage`
- resources end to end
+ resources end to end as defined in the projection spec
- topology, identity, and counts stay coherent across infrastructure and
workload surfaces
- no phase-1 path depends on a unified agent being installed on ESXi or guests
@@ -167,6 +172,7 @@ Owners:
Companion proof matrix:
- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md`
+- `docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_RESOURCE_PROJECTION_SPEC.md`
Deliver:
diff --git a/docs/release-control/v6/internal/status.json b/docs/release-control/v6/internal/status.json
index a43c9ca947..4d5c6438ae 100644
--- a/docs/release-control/v6/internal/status.json
+++ b/docs/release-control/v6/internal/status.json
@@ -3556,6 +3556,11 @@
"path": "docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_PROOF_MATRIX.md",
"kind": "file"
},
+ {
+ "repo": "pulse",
+ "path": "docs/release-control/v6/internal/VMWARE_VCENTER_PHASE1_RESOURCE_PROJECTION_SPEC.md",
+ "kind": "file"
+ },
{
"repo": "pulse",
"path": "docs/release-control/v6/internal/VMWARE_VSPHERE_PHASE1_EXECUTION_PLAN.md",
diff --git a/docs/release-control/v6/internal/subsystems/alerts.md b/docs/release-control/v6/internal/subsystems/alerts.md
index 4b6e30aba1..a19db9fe16 100644
--- a/docs/release-control/v6/internal/subsystems/alerts.md
+++ b/docs/release-control/v6/internal/subsystems/alerts.md
@@ -282,6 +282,13 @@ signals on canonical `agent`, `vm`, and `storage` resources, with related
event/task context routed through the shared incident and resource links.
Pulse must not grow a VMware-only alert shell, alarm editor, or direct alarm-
control surface in phase 1.
+That same VMware alert rule now also includes the topology boundary. Alarm
+context that originates on a datacenter, cluster, folder, or resource pool may
+inform a shared incident, but it must still resolve onto canonical `agent`,
+`vm`, or `storage` investigation paths rather than creating synthetic
+top-level VMware incident resources. If that attachment cannot be done
+honestly for a given signal, the signal should remain supporting context
+instead of inflating the support claim.
Future Docker thresholds presentation work should extend those section owners
instead of expanding `frontend-modern/src/components/Alerts/ThresholdsTableDockerTab.tsx`
back into a mixed render surface.
diff --git a/docs/release-control/v6/internal/subsystems/monitoring.md b/docs/release-control/v6/internal/subsystems/monitoring.md
index 2c772da927..20b24a6998 100644
--- a/docs/release-control/v6/internal/subsystems/monitoring.md
+++ b/docs/release-control/v6/internal/subsystems/monitoring.md
@@ -80,6 +80,26 @@ is materially narrower than the vCenter inventory and the declared support
floor depends on vCenter-backed topology, shared datastore scope, alarm state,
and historical performance access. Any later direct-ESXi work must be admitted
explicitly instead of inheriting vCenter support by implication.
+That same VMware monitoring boundary now also includes the canonical telemetry
+rule. ESXi host metrics and history belong on the shared `agent` path, VM
+metrics and history belong on the shared `vm` path, and datastore
+capacity/accessibility history belongs on the shared `storage` path. VMware
+phase-1 work must not create `vmware-host`, `vmware-vm`, or
+`vmware-datastore` history stores just because the collection APIs differ from
+other platforms.
+That same VMware monitoring boundary now also includes the source and identity
+rule. Runtime collection may authenticate to `vCenter`, call multiple VMware
+API families, and gather several object classes, but the emitted state must
+still collapse onto one canonical VMware source classification and one
+provider-scoped identity model for hosts, VMs, and datastores. Monitoring must
+not leak `vcenter` versus `esxi` transport distinctions into downstream
+resource identity or source filtering.
+That same VMware monitoring boundary now also includes the proof rule for
+history depth. `PerformanceManager.QueryPerfComposite` clearly supports
+host-plus-child metric collection, but exact VM and datastore history fidelity
+still requires live proof on the supported version floor. If that proof does
+not hold on the shared history model, the support claim must narrow rather
+than falling back to VMware-only history paths.
The monitor adapter now also acts as the canonical bridge from live registry
rebuilds and supplemental ingest into the unified-resource timeline. That means
diff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.md
index 7c3066163f..7f2887032a 100644
--- a/docs/release-control/v6/internal/subsystems/unified-resources.md
+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md
@@ -180,6 +180,29 @@ top-level types. Phase-1 vSphere work must not invent `esxi-host`,
`vsphere-vm`, `vsphere-cluster`, `system-container`, `app-container`, or
`physical-disk` projections just because the upstream APIs expose additional
object classes.
+That same VMware contract now also includes the shared source boundary. When
+runtime work starts, VMware-backed records must flow through one canonical
+VMware source key plus `platformType: vmware-vsphere`, not through separate
+`vcenter` and `esxi` source forks or provider-local raw type aliases. One
+host, VM, or datastore from VMware should therefore still look like one shared
+Pulse `agent`, `vm`, or `storage` resource to downstream selectors, drawers,
+alerts, AI, and route filters.
+That same VMware contract now also includes the identity rule. VMware managed
+object identifiers are phase-1 provider identities, but they must be scoped by
+the owning `vCenter` connection or discovered vCenter identity so bare object
+IDs do not masquerade as workspace-global keys. Secondary identities such as
+VM `instance_uuid` / `bios_uuid` and host UUID when available belong under the
+shared canonical identity model for future merge or assistant reasoning, not
+inside a VMware-only dedupe lane.
+That same VMware contract now also includes the topology rule. `vCenter`,
+datacenter, cluster, folder, resource pool, datastore cluster, and network
+objects may enrich canonical `agent`, `vm`, and `storage` resources as
+placement metadata or relationships, but they must not appear as synthetic
+top-level VMware resource types just to mirror the upstream inventory tree.
+Snapshot trees and VMware alarm/event/task context are also governed by that
+same rule: they may enrich canonical `vm`, `agent`, or `storage` resources and
+their timelines, but they do not become shared recovery artifacts, new
+resource kinds, or a parallel VMware incident model.
TrueNAS disk telemetry now follows the same rule. API-backed TrueNAS disks must
populate canonical `physicalDisk.temperature` and reuse the shared
physical-disk risk semantics, so infrastructure, storage, charts, and AI read