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.

Fix platform-scoped alert threshold hosts

Richard Courtman844d5f3a8636
diff --git a/docs/release-control/v6/internal/subsystems/alerts.md b/docs/release-control/v6/internal/subsystems/alerts.md
index aaa0beac2a..9751889cdb 100644
--- a/docs/release-control/v6/internal/subsystems/alerts.md
+++ b/docs/release-control/v6/internal/subsystems/alerts.md
@@ -100,7 +100,12 @@ alerting never reads it, leaving the machine on the global default with nothing
on screen to explain it. A resource must appear in exactly one threshold section,
the one whose identity alerting honours. Standalone Pulse-agent machines belong
to Machines, so the Virtualization Hosts section is fed by provider-owned
-virtualization nodes rather than by every resource of type `agent`.
+Proxmox PVE nodes rather than by every resource of type `agent`. Canonical
+TrueNAS and vSphere hosts are also represented as `agent` resources, but they
+belong only to their platform threshold sections; admitting either to
+Virtualization Hosts would normalize edits against Proxmox node defaults and
+could silently discard a valid platform override whose value happens to equal
+the Proxmox default.
QEMU guest-agent filesystems have their own threshold identity:
`guest-disk:<stable-guest-key>/disk:<mount-device-key>`. The stable guest key
diff --git a/docs/release-control/v6/internal/subsystems/frontend-primitives.md b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
index 1954f622ae..893e9ac1c2 100644
--- a/docs/release-control/v6/internal/subsystems/frontend-primitives.md
+++ b/docs/release-control/v6/internal/subsystems/frontend-primitives.md
@@ -2429,6 +2429,12 @@ default` instead of fusing provider and badge text such as
props that can collapse functions on the live Solid surface. Docker-only
controls in `ThresholdsTableDockerTab.tsx` must remain gated to real
`docker-host` resources instead of leaking onto platform-managed runtimes.
+ Threshold host selectors follow the same single-owner rule: canonical
+ `platformType` wins over secondary discovery facets, so TrueNAS and vSphere
+ `agent` resources remain in their platform threshold tabs even when they
+ retain Proxmox evidence, and only Proxmox PVE-owned hosts enter
+ `Virtualization Hosts`. A missing canonical owner may use the legacy
+ Proxmox scope resolver as a compatibility fallback.
37. Keep shared commercial upgrade navigation typed and destination-aware.
Shared paywall shells and upgrade actions must route internal billing or
cloud destinations through `frontend-modern/src/utils/upgradeNavigation.ts`,
diff --git a/frontend-modern/browser-verification.json b/frontend-modern/browser-verification.json
index 5e4f6c9a20..ae346c86eb 100644
--- a/frontend-modern/browser-verification.json
+++ b/frontend-modern/browser-verification.json
@@ -1,81 +1,37 @@
{
"version": 1,
- "base_sha": "b7651974260b3bccb8085754b002bd3727040832",
- "verified_at": "2026-08-06T20:28:35Z",
+ "base_sha": "bb75580073b6b161bcfe773307a54ac17217fa88",
+ "verified_at": "2026-08-06T22:24:12Z",
"result": "passed",
"changed_paths": [
- "frontend-modern/src/components/shared/FilterToolbar.tsx",
- "frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.tsx",
- "frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx",
- "frontend-modern/src/components/shared/SearchTipsPopover.tsx",
- "frontend-modern/src/components/shared/searchTipsPopoverModel.ts",
- "frontend-modern/src/components/shared/useSearchTipsPopoverState.ts",
- "frontend-modern/src/index.css"
+ "frontend-modern/src/features/alerts/useAlertOverridesState.ts"
],
"content_sha256": {
- "frontend-modern/src/components/shared/FilterToolbar.tsx": "e866a9276b5ab6a901ffea4adab59f9f1438376295017e4290a1e58f47e775f0",
- "frontend-modern/src/components/shared/FilterBar/SavedViewsMenu.tsx": "0266c7abf8ab90941d53b977f0fd1af7cd1f795d0c5849fdabe425a01d6cb02b",
- "frontend-modern/src/components/shared/FilterBar/ViewOptionsMenu.tsx": "877570b2fbdbd7378a0cd94bb3c65a9edb0a22348dd8ab9a106b0f15b92f0aa8",
- "frontend-modern/src/components/shared/SearchTipsPopover.tsx": "d570941c7f089dad7805c514b51c6f7a21647c91d6409f3b85f71f91e8b73d6a",
- "frontend-modern/src/components/shared/searchTipsPopoverModel.ts": "b558ce94eea59a645fd2878bc6bd2fd1f0184cc86cfd649ac6991f303f888131",
- "frontend-modern/src/components/shared/useSearchTipsPopoverState.ts": "be3c9840f580d1e975096a98f94da6ca6a0e554b9d93b1d0e2aac77403eb5b60",
- "frontend-modern/src/index.css": "ac6b159890d180e044153555e6e9299d02d7775991f9aab3f15a6a31f113c509"
+ "frontend-modern/src/features/alerts/useAlertOverridesState.ts": "558a4be683bc7b9ba712298955ffe2d61e43a4f74fa73f08f39252a1019eb273"
},
- "routes": ["/proxmox/overview", "/standalone/machines"],
+ "routes": [
+ "/alerts/thresholds/truenas",
+ "/alerts/thresholds/proxmox"
+ ],
"viewports": [
{
- "width": 390,
- "height": 844
- },
- {
- "width": 568,
- "height": 320
- },
- {
- "width": 844,
- "height": 390
- },
- {
- "width": 1180,
- "height": 650
+ "width": 1440,
+ "height": 1000
},
{
- "width": 1279,
- "height": 650
- },
- {
- "width": 1280,
- "height": 500
- },
- {
- "width": 1280,
- "height": 650
- },
- {
- "width": 1280,
- "height": 768
+ "width": 390,
+ "height": 844
}
],
"states": [
- "Short-height landscape platform tables with fixed bottom navigation",
- "Expanded Proxmox node details and mobile filter actions",
- "View preferences with the inline Proxmox column picker expanded",
- "View preferences with all eleven Machine column choices expanded",
- "Saved Views empty state and save-name form",
- "Search Tips with content taller than the available landscape space",
- "Exact bottom-navigation to desktop-navigation transition at 1279px and 1280px",
- "Short desktop windows below the safe anchored-popover height"
+ "TrueNAS system threshold row at its inherited 85% memory default and after a custom 95% override",
+ "Proxmox Virtualization Hosts section containing only PVE-scoped host rows",
+ "narrow TrueNAS threshold route with the selected platform tab visible and the saved 95% override rendered after reload"
],
"interactions": [
- "Verified the horizontally scrollable mobile platform rail keeps Machines reachable and centres it after activation",
- "Expanded a Proxmox node at 568x320 and confirmed the table shell and detail row create no horizontal document overflow",
- "Opened View preferences at 568x320, 844x390, 1180x650, 1279x650, 1280x500, and 1280x768",
- "Expanded the Machine column picker, scrolled internally to Kernel, toggled it, and reset the saved preference",
- "Removed and restored the Proxmox Disk column through the compact View panel",
- "Opened Saved Views and its save-name form at compact mobile and short desktop sizes",
- "Confirmed View and Saved Views remain fully above the bottom navigation and entirely inside the viewport",
- "Confirmed short desktop windows use a viewport-fixed panel while 1280x768 returns to the toolbar anchor",
- "Opened Search Tips at 568x320, 844x390, 1280x500, and 1280x768 and verified collision-aware height, internal scrolling, and desktop anchoring",
- "Measured zero document overflow throughout the interaction pass"
+ "edited truenas-main memory from 85% to 95%, committed the inline row edit, and confirmed Save Changes appeared without resetting the value",
+ "saved the alert configuration, reloaded /alerts/thresholds/truenas, and confirmed the custom 95% value persisted",
+ "switched to /alerts/thresholds/proxmox and confirmed the TrueNAS system was absent from Virtualization Hosts",
+ "reloaded /alerts/thresholds/truenas at 390x844 and confirmed the active TrueNAS tab and persisted 95% value remained visible"
]
}
diff --git a/frontend-modern/src/features/alerts/__tests__/useAlertOverridesState.test.tsx b/frontend-modern/src/features/alerts/__tests__/useAlertOverridesState.test.tsx
index 68ca174458..23a72f4308 100644
--- a/frontend-modern/src/features/alerts/__tests__/useAlertOverridesState.test.tsx
+++ b/frontend-modern/src/features/alerts/__tests__/useAlertOverridesState.test.tsx
@@ -63,7 +63,7 @@ describe('useAlertOverridesState', () => {
expect(overviewOverrides()).toEqual(result.overrides());
});
- it('keeps standalone agent machines out of the virtualization host list while retaining provider-owned nodes', () => {
+ it('keeps non-Proxmox systems out of the virtualization host threshold scope', () => {
const [hasUnsavedChanges] = createSignal(false);
const [, setOverviewOverrides] = createSignal([]);
const resources = [
@@ -91,6 +91,30 @@ describe('useAlertOverridesState', () => {
proxmox: { node: 'pve01', instance: 'cluster-a' },
},
}),
+ // TrueNAS systems are canonical `agent` resources too, but their row must
+ // use TrueNAS defaults. If this ID also enters Virtualization Hosts, a 95%
+ // memory edit collides with the PVE node default and is stripped (#1593).
+ makeResource({
+ id: 'agent-truenas-01',
+ name: 'strawberrynas',
+ type: 'agent',
+ platformType: 'truenas',
+ sourceType: 'api',
+ sources: ['truenas'],
+ truenas: { hostname: 'strawberrynas' },
+ proxmox: { node: 'strawberrynas' },
+ }),
+ // vSphere hosts also own a dedicated platform threshold section.
+ makeResource({
+ id: 'agent-vsphere-01',
+ name: 'esxi-01',
+ type: 'agent',
+ platformType: 'vmware-vsphere',
+ sourceType: 'api',
+ sources: ['vmware'],
+ vmware: { runtimeHostName: 'esxi-01' },
+ proxmox: { node: 'esxi-01' },
+ }),
];
const { result } = renderHook(() =>
diff --git a/frontend-modern/src/features/alerts/useAlertOverridesState.ts b/frontend-modern/src/features/alerts/useAlertOverridesState.ts
index 10bbaa901b..a8114afa7c 100644
--- a/frontend-modern/src/features/alerts/useAlertOverridesState.ts
+++ b/frontend-modern/src/features/alerts/useAlertOverridesState.ts
@@ -3,11 +3,10 @@ import { createEffect, createMemo, createSignal, type Accessor } from 'solid-js'
import type { PBSInstance, PMGInstance } from '@/types/api';
import type { RawOverrideConfig } from '@/types/alerts';
import type { Resource, ResourceType } from '@/types/resource';
-import {
- isAgentFacetInfrastructureResource,
- isPulseAgentPlatformResource,
-} from '@/utils/agentResources';
+import { resolveProxmoxPlatformScope } from '@/features/proxmox/proxmoxPageModel';
+import { isAgentFacetInfrastructureResource } from '@/utils/agentResources';
import { pbsInstanceFromResource, pmgInstanceFromResource } from '@/utils/resourceStateAdapters';
+import { resolveResourcePlatformType } from '@/utils/sourcePlatforms';
import {
buildContainerRuntimeResources,
@@ -24,6 +23,12 @@ export interface AlertOverridesStateProps {
setOverviewOverrides: (value: Override[]) => void;
}
+const isVirtualizationHostResource = (resource: Resource): boolean => {
+ const platformType = resolveResourcePlatformType(resource);
+ if (platformType) return platformType === 'proxmox-pve';
+ return resolveProxmoxPlatformScope(resource) === 'proxmox-pve';
+};
+
export function useAlertOverridesState(props: AlertOverridesStateProps) {
const [overrides, setOverrides] = createSignal<Override[]>([]);
const [rawOverridesConfig, setRawOverridesConfig] = createSignal<
@@ -51,13 +56,14 @@ export function useAlertOverridesState(props: AlertOverridesStateProps) {
props.allResources().filter((resource) => isAgentFacetInfrastructureResource(resource)),
);
- // Standalone Pulse-agent machines are not virtualization hosts. They own a row
- // in the Machines tab, which resolves overrides by agent identity. Leaving them
- // in the Virtualization Hosts list gave the same machine a second row that saved
- // overrides under the bare resource id, an identity agent alerting never reads,
- // so the override silently did nothing.
+ // Virtualization Hosts is the Proxmox PVE threshold scope. Other canonical
+ // `agent` resources have their own identity-aware sections: Pulse agents use
+ // Systems, while TrueNAS and vSphere use their platform tabs. Letting any of
+ // those resources into this list duplicates the same resource ID with node
+ // defaults, so the shared save path can normalize a platform override against
+ // the wrong defaults (for example, TrueNAS memory 95% against PVE's 95%).
const virtualizationHostResources = createMemo(() =>
- props.byType('agent').filter((resource) => !isPulseAgentPlatformResource(resource)),
+ props.byType('agent').filter(isVirtualizationHostResource),
);
const pbsInstances = createMemo<PBSInstance[]>(() =>