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.

platforms: drop unsupported type tokens from Proxmox / TrueNAS / vSphere queries

rcourtman0aa43175325f
diff --git a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
index ca90d4c5bb..921c18ee26 100644
--- a/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
+++ b/frontend-modern/src/features/proxmox/ProxmoxPageSurface.tsx
@@ -15,8 +15,15 @@ import {
type ProxmoxPageTabId,
} from './proxmoxPageModel';
+// `datastore`, `dataset`, and ZFS-style `pool` are not first-class
+// resource type tokens at the API boundary — they all collapse to
+// `storage` (with `storage.topology` differentiating dataset vs pool) or
+// `ceph` (for Ceph pools). Including them in the type filter triggers a
+// 400 from `/api/resources` which surfaces as "Could not load Proxmox
+// resources" in the UI. The page model still filters those topologies
+// client-side from the canonical `storage` rows.
const PROXMOX_RESOURCE_QUERY =
- 'type=agent,vm,system-container,oci-container,storage,datastore,pool,dataset,physical_disk,ceph,pbs,pmg';
+ 'type=agent,vm,system-container,oci-container,storage,physical_disk,ceph,pbs,pmg';
const PROXMOX_PLATFORM_FILTER = 'proxmox-pve';
const VALID_TABS = new Set<ProxmoxPageTabId>(PROXMOX_TAB_SPECS.map((tab) => tab.id));
diff --git a/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx b/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx
index 4fb7baf1cb..a6689c329a 100644
--- a/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx
+++ b/frontend-modern/src/features/truenas/TrueNASPageSurface.tsx
@@ -17,8 +17,13 @@ import {
type TrueNASPageTabId,
} from './truenasPageModel';
+// `pool` and `dataset` collapse into `storage` at the API boundary
+// (with `storage.topology` differentiating them) — they are not
+// first-class type tokens and including them triggers a 400 from
+// `/api/resources`. The page model still buckets by topology
+// client-side.
const TRUENAS_RESOURCE_QUERY =
- 'type=agent,app-container,storage,pool,dataset,physical_disk';
+ 'type=agent,app-container,storage,physical_disk';
const TRUENAS_PLATFORM_FILTER = 'truenas';
const VALID_TABS = new Set<TrueNASPageTabId>(TRUENAS_TAB_SPECS.map((tab) => tab.id));
diff --git a/frontend-modern/src/features/vmware/VmwarePageSurface.tsx b/frontend-modern/src/features/vmware/VmwarePageSurface.tsx
index b7dc6d9b71..b39d745ef5 100644
--- a/frontend-modern/src/features/vmware/VmwarePageSurface.tsx
+++ b/frontend-modern/src/features/vmware/VmwarePageSurface.tsx
@@ -16,7 +16,10 @@ import {
type VmwarePageTabId,
} from './vmwarePageModel';
-const VMWARE_RESOURCE_QUERY = 'type=agent,vm,storage,datastore';
+// `datastore` is not a first-class type token at the API boundary; vSphere
+// datastores are emitted as canonical `storage` rows. Including it
+// triggers a 400 from `/api/resources`.
+const VMWARE_RESOURCE_QUERY = 'type=agent,vm,storage';
const VMWARE_PLATFORM_FILTER = 'vmware-vsphere';
const VALID_TABS = new Set<VmwarePageTabId>(VMWARE_TAB_SPECS.map((tab) => tab.id));