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
feat(proxmox): surface PBS hosts on overview
pulse-triage[bot]699143b7b841
diff --git a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.tsindex 97dd327360..cb9ccfc333 100644--- a/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts+++ b/frontend-modern/src/features/platformPage/__tests__/platformOverviewLayout.guardrails.test.ts@@ -444,6 +444,7 @@ describe('platform overview layout guardrails', () => {}expect(proxmoxPageSurfaceSource).toContain('<ProxmoxNodesTable');+ expect(proxmoxPageSurfaceSource).toContain('<ProxmoxBackupServersTable');expect(proxmoxPageSurfaceSource).toContain('<WorkloadsSurface');expect(proxmoxPageSurfaceSource).toContain("const PROXMOX_WORKLOAD_EXCLUDED_TYPES = ['app-container'] as const",diff --git a/frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx b/frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsxindex f486ae8ff1..30ccfcc0f2 100644--- a/frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxBackupServersTable.tsx@@ -40,8 +40,9 @@ import {// so it lives here on the Backups page, not buried on the platform Storage tab// where the rows read as generic "PVE" storage. One row per datastore, labelled// by its server; a server with no datastore data still gets a reachability row.-// Host CPU/memory/uptime ride along on each of the server's rows: PBS hosts-// left the v5 nodes table in the v6 IA, so this is where their health lives.+// Host CPU/memory/uptime ride along on each of the server's rows. The shared+// table appears on Overview for estate health and on Backups beside recovery+// evidence, so both paths open the same canonical PBS/agent detail drawer.interface BackupServerRow {key: string;diff --git a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsxindex f7f11e1a59..dcf591cf0e 100644--- a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx+++ b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx@@ -51,6 +51,7 @@ import {PlatformTableLoadingState,} from '@/features/platformPage/sharedPlatformPage';import { ProxmoxBackupsTable } from './ProxmoxBackupsTable';+import { ProxmoxBackupServersTable } from './ProxmoxBackupServersTable';import { ProxmoxCephTable } from './ProxmoxCephTable';import { ProxmoxMailGatewayTable } from './ProxmoxMailGatewayTable';import { ProxmoxNodesTable } from './ProxmoxNodesTable';@@ -70,7 +71,7 @@ import {// REST page also carries global type aggregations, so evidence-gated tabs do// not require the old 1,000+ row workspace request.const PROXMOX_RESOURCE_QUERY_BY_TAB: Record<ProxmoxPageTabId, string> = {- overview: 'type=agent,vm,system-container,oci-container',+ overview: 'type=agent,vm,system-container,oci-container,pbs',storage: 'type=agent,pbs,storage,physical_disk,ceph',replication: 'type=agent',backups: 'type=agent,vm,system-container,pbs',@@ -530,6 +531,7 @@ function ProxmoxOverview(props: ProxmoxOverviewProps) {inventoryCountsVisible={props.inventoryCountsVisible}/></section>+ <ProxmoxBackupServersTable servers={currentModel().pbs} layoutWidth={overviewWidth.width} /><sectionid="proxmox-guests-section"aria-label="Guests"diff --git a/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsxindex 98a51c20fd..30e07b727d 100644--- a/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx+++ b/frontend-modern/src/features/proxmox/__tests__/ProxmoxPageSurface.contract.test.tsx@@ -14,6 +14,7 @@ const mockVersionInfo = vi.hoisted(() => vi.fn());const mockStorageProps = vi.hoisted(() => vi.fn());const mockTotalStats = vi.hoisted(() => vi.fn());const mockNodesTableProps = vi.hoisted(() => vi.fn());+const mockBackupServersTableProps = vi.hoisted(() => vi.fn());const mockWorkloadSearch = vi.hoisted(() => vi.fn(() => ''));const makeResource = (resource: Partial<Resource> & Pick<Resource, 'id' | 'type'>): Resource =>@@ -115,6 +116,13 @@ vi.mock('../ProxmoxBackupsTable', () => ({ProxmoxBackupsTable: () => <div data-testid="backups-table" />,}));+vi.mock('../ProxmoxBackupServersTable', () => ({+ ProxmoxBackupServersTable: (props: { servers: Resource[] }) => {+ mockBackupServersTableProps(props);+ return <div data-testid="backup-servers-table" data-rows={props.servers.length} />;+ },+}));+vi.mock('../ProxmoxCephTable', () => ({ProxmoxCephTable: () => <div data-testid="ceph-table" />,}));@@ -326,6 +334,33 @@ describe('ProxmoxPageSurface contract', () => {);});+ it('keeps standalone PBS host health on the Proxmox overview', () => {+ const pbsServer = makeResource({+ id: 'pbs:standalone',+ type: 'pbs',+ name: 'pbs-standalone',+ platformType: 'proxmox-pbs',+ sources: ['pbs'],+ pbs: { instanceId: 'pbs-standalone', connectionHealth: 'healthy' },+ });+ const pbsAgent = makeResource({+ id: 'agent:pbs-standalone',+ type: 'agent',+ name: 'pbs-standalone',+ platformType: 'proxmox-pbs',+ sources: ['agent', 'pbs'],+ agent: { agentId: 'agent-pbs-standalone', hostname: 'pbs-standalone' },+ });+ setResources([pbsServer, pbsAgent]);++ renderSurface();++ expect(screen.getByTestId('backup-servers-table')).toHaveAttribute('data-rows', '2');+ expect(mockBackupServersTableProps).toHaveBeenCalledWith(+ expect.objectContaining({ servers: [pbsServer, pbsAgent] }),+ );+ });+it('shares workload search with the node inventory', () => {mockWorkloadSearch.mockReturnValue('pve-1');setResources([@@ -392,7 +427,7 @@ describe('ProxmoxPageSurface contract', () => {'proxmox-mail',]);expect(options.map((value) => value.query)).toEqual([- 'type=agent,vm,system-container,oci-container',+ 'type=agent,vm,system-container,oci-container,pbs','type=agent,pbs,storage,physical_disk,ceph','type=agent','type=agent,vm,system-container,pbs',@@ -404,6 +439,7 @@ describe('ProxmoxPageSurface contract', () => {expect(proxmoxPageSurfaceSource).toContain('requestIdleCallback');expect(proxmoxPageSurfaceSource).toContain("phoneViewport\n ? ['storage']");expect(proxmoxPageSurfaceSource).toContain('resourceSource={storageResources}');+ expect(proxmoxPageSurfaceSource).toContain('servers={currentModel().pbs}');});it('places workload controls beside the workload table they affect', () => {@@ -414,6 +450,12 @@ describe('ProxmoxPageSurface contract', () => {expect(nodesTableIndex).toBeGreaterThan(-1);expect(workloadFilterIndex).toBeGreaterThan(nodesTableIndex);expect(workloadsSurfaceIndex).toBeGreaterThan(workloadFilterIndex);+ expect(proxmoxPageSurfaceSource.indexOf('<ProxmoxBackupServersTable')).toBeGreaterThan(+ nodesTableIndex,+ );+ expect(proxmoxPageSurfaceSource.indexOf('<ProxmoxBackupServersTable')).toBeLessThan(+ workloadFilterIndex,+ );});it('keeps the bounded node preview before guests at every viewport', () => {