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
Bucket a guest with a failed attached probe as needing attention
rcourtman4fbca57dd4fd
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.jsonindex 0d7388d8ca..9d6341fda6 100644--- a/frontend-modern/browser-verification.json+++ b/frontend-modern/browser-verification.json@@ -1,82 +1,29 @@{"version": 1,- "base_sha": "46af83d5fd65443f07a465446093aa805cd0b3e3",- "verified_at": "2026-08-04T00:12:38Z",+ "base_sha": "2bfab3610e499abafdb416ff4eb1b57a26f01bca",+ "verified_at": "2026-08-04T09:22:02Z","result": "passed",- "changed_paths": [- "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx",- "frontend-modern/src/components/Workloads/WorkloadsSurface.tsx",- "frontend-modern/src/components/Workloads/WorkloadsTable.tsx",- "frontend-modern/src/components/Workloads/guestRowModel.tsx",- "frontend-modern/src/components/Workloads/useWorkloadsControlsState.ts",- "frontend-modern/src/components/Workloads/useWorkloadsState.ts",- "frontend-modern/src/components/Workloads/workloadsFilterModel.ts",- "frontend-modern/src/components/shared/columnPickerModel.ts",- "frontend-modern/src/components/shared/useColumnPickerState.ts",- "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx",- "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx",- "frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts",- "frontend-modern/src/hooks/useObservedElementWidth.ts",- "frontend-modern/src/index.css"- ],+ "changed_paths": ["frontend-modern/src/components/Workloads/workloadSelectors.ts"],"content_sha256": {- "frontend-modern/src/components/Workloads/WorkloadsFilter.tsx": "d420344cdb8a8277f9868a4e838099efa050a470ed4c22840aec0df0fd910542",- "frontend-modern/src/components/Workloads/WorkloadsSurface.tsx": "a2e4911a8974cbb03db55d7a58fca37582974257aa7f88771eb1d6f98205d44f",- "frontend-modern/src/components/Workloads/WorkloadsTable.tsx": "6852af254cf0fac698d0481bd228186b7237108e7345085e6d48fc2923493d83",- "frontend-modern/src/components/Workloads/guestRowModel.tsx": "4866bc3fd4ca22d73eade48321fefde6e6f2940c32ae3f98ade87a90c080254f",- "frontend-modern/src/components/Workloads/useWorkloadsControlsState.ts": "766ee0e188ad37e386049d37535f043d29fdf138fd0fc82c340c1817e9cafc14",- "frontend-modern/src/components/Workloads/useWorkloadsState.ts": "86d9a97ecb10502e6baf7ca68a884db1fdd74afed1240e6b4ff5b35ee76e2d11",- "frontend-modern/src/components/Workloads/workloadsFilterModel.ts": "bd418028233fc52e361a0428d859b77e8fc77f9f00dfa8baa1449577a506eb17",- "frontend-modern/src/components/shared/columnPickerModel.ts": "a8c34404ae8da4030a126d2188c8f3486f6a699fbdce12531e4e15e97a806175",- "frontend-modern/src/components/shared/useColumnPickerState.ts": "260020f896719b4fd1bed8d2511b3a47028753f822c3769a2fe7bd5a4be05d3e",- "frontend-modern/src/features/proxmox/ProxmoxNodesTable.tsx": "bc7c1146577abd439ea21490c8d0ad38d4efbf030c9ebbd2d6ed0e225a2ed7bb",- "frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx": "35f4e5511dba2782d3f2d32a84c470094f9290635953275991eda65d9dff16d6",- "frontend-modern/src/features/proxmox/proxmoxHostTableModel.ts": "8d70932ef914db8870c96f0f77a2fab2d39bb70081918b82bd5bbf0a0b9db437",- "frontend-modern/src/hooks/useObservedElementWidth.ts": "cfb04bc6dde18060344b26d6c663fc4d3f147882323dc1cb1091ea3f03ac56f5",- "frontend-modern/src/index.css": "7b2f6c80b1e8a75849b0633b41be1c74d6740d263982aa5f3f365a6eb733dc17"+ "frontend-modern/src/components/Workloads/workloadSelectors.ts": "f7d8e836a655443cbbc64e8f831e98047b1fe713db2a908fb84f1a3585ceb0e6"},- "routes": [- "/proxmox/overview"- ],+ "routes": ["/proxmox/overview"],"viewports": [- { "width": 375, "height": 812 },- { "width": 480, "height": 812 },- { "width": 640, "height": 900 },- { "width": 768, "height": 900 },- { "width": 800, "height": 900 },- { "width": 900, "height": 900 },- { "width": 1024, "height": 900 },- { "width": 1280, "height": 900 },{ "width": 1440, "height": 900 },- { "width": 1536, "height": 900 },- { "width": 1680, "height": 900 },- { "width": 1920, "height": 900 },- { "width": 2560, "height": 900 }+ { "width": 390, "height": 844 }],"states": [- "Live Proxmox Overview against the local backend with the Nodes table and grouped VM/LXC workload inventory visible",- "Automatic container-aware column stages from four essential host columns at narrow widths through the full ten-column host inventory at wide widths",- "Automatic workload stages from five essential columns through the wide workload metrics and context columns",- "Overview-only wide data workspace using the available monitor width while retaining normal text and control sizes",- "All optional workload columns explicitly selected with a readable 1510px table floor and intentional horizontal scrolling",- "Column picker with the renamed Reset action still visible after every optional column is selected",- "Grouped and List workload modes at compact and wide resolutions",- "Bars and Trends metric display modes",- "Pulse Assistant open beside Overview at desktop widths",- "Very narrow 375px and 480px layouts retaining readable essential columns through deliberate table-local scrolling"+ "Proxmox Overview against the live backend with 42 grouped workload rows and 36 attached availability checks, none of them currently failing",+ "Attention status filter applied, returning the canonical no-guests-match empty state because no guest is degraded",+ "Filters cleared back to All with the full workload inventory restored",+ "Narrow 390px layout with the unfiltered workload table"],"interactions": [- "Returned from Storage to /proxmox/overview before implementation and kept all subsequent product testing scoped to Overview",- "Resized the real in-app browser through 375, 480, 640, 768, 800, 900, 1024, 1280, 1440, 1536, 1680, 1920 and 2560 pixel widths",- "Asserted both table wrapper overflow and every header's clientWidth versus scrollWidth at each final matrix width; found zero default overflow and zero clipped headers from 640px through 2560px",- "Visually inspected screenshots at 900x812 and 1440x900, confirming readable labels, metric bars, host context and workload density",- "Opened View and Columns, selected IP, AI Context, Tags, OS, Net I/O and Disk I/O, and confirmed all 15 columns render at a readable 1510px floor rather than being squeezed",- "Resized the all-column table from 1536px to 1024px and confirmed the 1510px floor, readable 243px first cell and table-local 572px horizontal overflow",- "Confirmed Reset remains available with zero hidden columns, then restored the responsive defaults and verified overflow returned to zero",- "Hid Tags at 1680px, resized to 1024px and back, and confirmed the hidden choice persisted; showed Tags, resized to 1024px, and confirmed the explicit choice stayed visible with a readable 996px floor before resetting",- "Switched to List mode across 1024, 1280, 1536, 1680, 1920 and 2560px, confirmed zero overflow, then restored Grouped mode",- "Switched from Bars to Trends at 900px, confirmed both tables retained zero overflow, then restored Bars",- "Opened Pulse Assistant and tested 1280, 1536, 1920 and 2560px; both tables adapted to the reduced measured container with zero overflow and no clipped headers",- "Closed Pulse Assistant, closed the View menu, restored default columns, restored the normal browser viewport and left /proxmox/overview open"+ "Read the live resource payload and confirmed 36 availability checks are correlated as attached with zero currently unavailable, so the new degraded bucket introduces no false positives on a healthy fleet",+ "Applied the Attention status filter and confirmed it still resolves to the empty state rather than pulling in healthy guests",+ "Cleared filters and confirmed all 42 workload rows returned",+ "Resized to 390x844 and confirmed the unfiltered table renders with no horizontal document overflow",+ "Read console messages filtered to errors across both viewports and found none",+ "The failing-probe path itself is proven by unit test rather than in the browser because no attached check is currently failing on this instance; the new cases in workloadSelectors.test.ts were confirmed red with the degradation branch disabled and green with it restored"]}diff --git a/frontend-modern/src/components/Workloads/__tests__/workloadSelectors.test.ts b/frontend-modern/src/components/Workloads/__tests__/workloadSelectors.test.tsindex 9521567c03..49c8beb8f4 100644--- a/frontend-modern/src/components/Workloads/__tests__/workloadSelectors.test.ts+++ b/frontend-modern/src/components/Workloads/__tests__/workloadSelectors.test.ts@@ -160,6 +160,119 @@ describe('workloadSelectors', () => {});});+ it('buckets a running guest whose attached availability probe has failed as degraded', () => {+ const failedAttachedProbe = {+ enabled: true,+ available: false,+ correlationState: 'attached' as const,+ consecutiveFailures: 3,+ failureThreshold: 2,+ };++ const guests = [+ makeGuest(1, { status: 'running', availability: failedAttachedProbe }),+ makeGuest(2, { status: 'running' }),+ ];++ const filterByStatus = (statusMode: 'running' | 'degraded' | 'stopped') =>+ filterWorkloads({+ guests,+ viewMode: 'all',+ statusMode,+ searchTerm: '',+ selectedNode: null,+ selectedHostHint: null,+ selectedKubernetesContext: null,+ }).map((guest) => guest.id);++ expect(filterByStatus('degraded')).toEqual([guests[0].id]);+ expect(filterByStatus('running')).toEqual([guests[1].id]);+ expect(computeWorkloadStats(guests).degraded).toBe(1);+ });++ it('ignores availability probes that are not proven to describe the guest', () => {+ const failing = {+ enabled: true,+ available: false,+ consecutiveFailures: 9,+ failureThreshold: 2,+ };++ const guests = [+ // Not correlated to this guest, so it says nothing about the guest.+ makeGuest(1, {+ status: 'running',+ availability: { ...failing, correlationState: 'standalone' as const },+ }),+ // Correlated but still inside the threshold the poller uses before it+ // raises an incident, so the bucket must not run ahead of the alert.+ makeGuest(2, {+ status: 'running',+ availability: {+ ...failing,+ correlationState: 'attached' as const,+ consecutiveFailures: 1,+ },+ }),+ // Disabled checks are not evidence of anything.+ makeGuest(3, {+ status: 'running',+ availability: { ...failing, correlationState: 'attached' as const, enabled: false },+ }),+ // Responding normally.+ makeGuest(4, {+ status: 'running',+ availability: { enabled: true, available: true, correlationState: 'attached' as const },+ }),+ ];++ expect(computeWorkloadStats(guests).degraded).toBe(0);+ expect(computeWorkloadStats(guests).running).toBe(4);+ });++ it('keeps a stopped guest stopped even when its probe cannot reach it', () => {+ const guests = [+ makeGuest(1, {+ status: 'stopped',+ availability: {+ enabled: true,+ available: false,+ correlationState: 'attached' as const,+ consecutiveFailures: 5,+ failureThreshold: 2,+ },+ }),+ ];++ expect(computeWorkloadStats(guests).stopped).toBe(1);+ expect(computeWorkloadStats(guests).degraded).toBe(0);+ });++ it('degrades when any one of several projected checks has failed', () => {+ const guests = [+ makeGuest(1, {+ status: 'running',+ availability: {+ enabled: true,+ available: true,+ correlationState: 'attached' as const,+ },+ availabilityChecks: [+ { enabled: true, available: true, correlationState: 'attached' as const },+ {+ enabled: true,+ available: false,+ correlationState: 'attached' as const,+ consecutiveFailures: 4,+ failureThreshold: 2,+ },+ ],+ }),+ ];++ expect(computeWorkloadStats(guests).degraded).toBe(1);+ });+it('applies text and metric search filters, and supports combined filtering', () => {const guests = [makeGuest(1, { name: 'alpha-api', vmid: 201, cpu: 0.8, node: 'node-a', status: 'running' }),diff --git a/frontend-modern/src/components/Workloads/workloadSelectors.ts b/frontend-modern/src/components/Workloads/workloadSelectors.tsindex 83a352c907..7702beded3 100644--- a/frontend-modern/src/components/Workloads/workloadSelectors.ts+++ b/frontend-modern/src/components/Workloads/workloadSelectors.ts@@ -59,6 +59,37 @@ const classifyWorkloadStatus = (status: string): WorkloadStatusBucket => {return 'degraded';};+/**+ * True when an availability probe that resolved to this guest has failed past+ * its configured threshold.+ *+ * Only `attached` facets count: a standalone, ambiguous, or unresolved probe+ * has not been proven to describe this guest. The threshold mirrors the gate+ * the availability poller uses before raising `availability_unreachable`, so a+ * guest lands in this bucket exactly when its check has alerted.+ *+ * The check resource remains the sole owner of that incident, its alert, and+ * its history (see the availability check identity record of 2026-07-23). This+ * mints nothing new; it only stops a guest whose service is unreachable from+ * being bucketed as healthy, which today hides it from the Attention filter.+ */+const hasFailedAttachedAvailabilityCheck = (guest: WorkloadGuest): boolean => {+ const checks = guest.availabilityChecks?.length+ ? guest.availabilityChecks+ : guest.availability+ ? [guest.availability]+ : [];++ return checks.some((check) => {+ if (!check || check.enabled === false) return false;+ if (check.available !== false) return false;+ if (check.correlationState !== 'attached') return false;+ const failures = check.consecutiveFailures ?? 0;+ const threshold = Math.max(check.failureThreshold ?? 1, 1);+ return failures >= threshold;+ });+};+const resolveWorkloadStatusBucket = (guest: WorkloadGuest): WorkloadStatusBucket => {const resourceStatus = (guest.resourceStatus || '').trim().toLowerCase();@@ -68,7 +99,17 @@ const resolveWorkloadStatusBucket = (guest: WorkloadGuest): WorkloadStatusBucketreturn classifyWorkloadStatus(resourceStatus);}- return classifyWorkloadStatus(guest.status || '');+ const bucket = classifyWorkloadStatus(guest.status || '');++ // A powered-on guest that its own probe cannot reach is not healthy, even+ // though the hypervisor only knows it is running. A stopped guest keeps its+ // own bucket; the probe says nothing useful about a guest nobody expects to+ // answer.+ if (bucket === 'running' && hasFailedAttachedAvailabilityCheck(guest)) {+ return 'degraded';+ }++ return bucket;};type SortDirection = 'asc' | 'desc';