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
Add vSphere health tab
rcourtmandb690b0dce46
diff --git a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.tsindex 43477dc0a2..28b223b251 100644--- a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts+++ b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts@@ -199,6 +199,7 @@ describe('platform overview layout guardrails', () => {expect(truenasVirtualMachinesTableSource).toContain('md:min-w-[960px]');expect(vmwarePageSurfaceSource).toContain('<VsphereHostsTable');expect(vmwarePageSurfaceSource).toContain('<VsphereAlertsTable');+ expect(vmwarePageSurfaceSource).toContain("activeTab() === 'health'");expect(vmwarePageSurfaceSource).toContain('<VsphereVirtualMachinesTable');expect(vmwarePageSurfaceSource).not.toContain('<WorkloadsSurface');expect(vmwarePageSurfaceSource).toContain('<VsphereDatastoresTable');diff --git a/frontend-modern/src/features/vmware/VmwarePageSurface.tsx b/frontend-modern/src/features/vmware/VmwarePageSurface.tsxindex 3b87b103ae..005b62aa6a 100644--- a/frontend-modern/src/features/vmware/VmwarePageSurface.tsx+++ b/frontend-modern/src/features/vmware/VmwarePageSurface.tsx@@ -103,6 +103,14 @@ export function VmwarePageSurface() {emptyDescription="Datastores appear here once the vCenter connection enumerates them."/></Show>+ <Show when={activeTab() === 'health'}>+ <VsphereAlertsTable+ incidents={model().incidents}+ emptyIcon={vmwareIcon()}+ emptyTitle="No active vSphere health signals"+ emptyDescription="vSphere triggered alarms and overall health signals appear here when vCenter reports them."+ />+ </Show><Show when={activeTab() === 'activity'}><Showwhen={!activityTimeline.error || model().activity.length > 0}@@ -154,14 +162,6 @@ function VmwareOverview(props: VmwareOverviewProps) {emptyDescription="Hosts appear here once the vCenter connection enumerates them."showToolbar={false}/>- <Show when={props.model().incidents.length > 0}>- <VsphereAlertsTable- incidents={props.model().incidents}- emptyIcon={vmwareIcon()}- emptyTitle="No active vSphere health signals"- emptyDescription="vSphere triggered alarms and overall health signals appear here when vCenter reports them."- />- </Show><VsphereVirtualMachinesTablevms={props.model().vms}scope={props.model().resources}diff --git a/frontend-modern/src/features/vmware/__tests__/vmwarePageModel.test.ts b/frontend-modern/src/features/vmware/__tests__/vmwarePageModel.test.tsindex 6cfa30a8b4..da9fa397f5 100644--- a/frontend-modern/src/features/vmware/__tests__/vmwarePageModel.test.ts+++ b/frontend-modern/src/features/vmware/__tests__/vmwarePageModel.test.ts@@ -26,10 +26,16 @@ const makeResource = (resource: Partial<Resource> & Pick<Resource, 'id' | 'type'describe('vmwarePageModel', () => {it('declares the vSphere section set', () => {- expect(VMWARE_TAB_SPECS.map((tab) => tab.id)).toEqual(['overview', 'storage', 'activity']);+ expect(VMWARE_TAB_SPECS.map((tab) => tab.id)).toEqual([+ 'overview',+ 'storage',+ 'health',+ 'activity',+ ]);expect(VMWARE_TAB_SPECS.map((tab) => tab.label)).toEqual(['Overview','Datastores',+ 'Health','Activity',]);});diff --git a/frontend-modern/src/features/vmware/vmwarePageModel.ts b/frontend-modern/src/features/vmware/vmwarePageModel.tsindex 6265ca1bee..38cb856ffc 100644--- a/frontend-modern/src/features/vmware/vmwarePageModel.ts+++ b/frontend-modern/src/features/vmware/vmwarePageModel.ts@@ -1,7 +1,7 @@import { resolveResourcePlatformType } from '@/utils/sourcePlatforms';import type { Resource, ResourceChange, ResourceIncident, ResourceType } from '@/types/resource';-export type VmwarePageTabId = 'overview' | 'storage' | 'activity';+export type VmwarePageTabId = 'overview' | 'storage' | 'health' | 'activity';export type VmwareDatastoreStatusFilter =| 'all'| 'accessible'@@ -34,6 +34,7 @@ export type VmwareTabSpec = {export const VMWARE_TAB_SPECS: readonly VmwareTabSpec[] = [{ id: 'overview', label: 'Overview', path: '/vmware/overview' },{ id: 'storage', label: 'Datastores', path: '/vmware/storage' },+ { id: 'health', label: 'Health', path: '/vmware/health' },{ id: 'activity', label: 'Activity', path: '/vmware/activity' },] as const;diff --git a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts b/frontend-modern/src/routing/__tests__/resourceLinks.test.tsindex 49e20f5003..8f8f503f75 100644--- a/frontend-modern/src/routing/__tests__/resourceLinks.test.ts+++ b/frontend-modern/src/routing/__tests__/resourceLinks.test.ts@@ -64,6 +64,7 @@ describe('resource link routing contract', () => {expect(VMWARE_PATH).toBe('/vmware');expect(buildVmwarePath()).toBe('/vmware/overview');expect(buildVmwarePath('storage')).toBe('/vmware/storage');+ expect(buildVmwarePath('health')).toBe('/vmware/health');expect(buildVmwarePath('activity')).toBe('/vmware/activity');});