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
Show linked-agent power in Proxmox node hardware details
pulse-triage[bot]f5942b881bee
diff --git a/frontend-modern/src/components/Infrastructure/resourceDetailMappers.ts b/frontend-modern/src/components/Infrastructure/resourceDetailMappers.tsindex 07e3b11301..2d48b3972b 100644--- a/frontend-modern/src/components/Infrastructure/resourceDetailMappers.ts+++ b/frontend-modern/src/components/Infrastructure/resourceDetailMappers.ts@@ -385,6 +385,16 @@ const formatPowerWatts = (value: number) => {return `${value.toFixed(1)} W`;};+export const buildPowerRows = (power?: HostSensorSummary['powerWatts']) =>+ Object.entries(power ?? {})+ .map(([name, value]) => [name, formatPowerWatts(value)] as const)+ .filter(([, value]) => value)+ .sort(([a], [b]) => a.localeCompare(b))+ .map(([name, value]) => {+ const label = formatPowerSensorLabel(name);+ return { label, value, valueTitle: `${label} ${value}` };+ });+const formatFanRPM = (value: number) => {if (!Number.isFinite(value)) return '';return `${Math.round(Math.max(0, value)).toLocaleString()} RPM`;@@ -502,21 +512,7 @@ export const buildTemperatureRows = (});}- const power = sensors?.powerWatts;- if (power) {- Object.entries(power)- .map(([name, value]) => [name, formatPowerWatts(value)] as const)- .filter(([, value]) => value)- .sort(([a], [b]) => a.localeCompare(b))- .forEach(([name, value]) => {- const label = formatPowerSensorLabel(name);- rows.push({- label,- value,- valueTitle: `${label} ${value}`,- });- });- }+ rows.push(...buildPowerRows(sensors?.powerWatts));// This card has no other cue that a value is not current, so a retained// sensor reading says so in its value, as a retained disk reading does.diff --git a/frontend-modern/src/components/Workloads/NodeDrawer.test.tsx b/frontend-modern/src/components/Workloads/NodeDrawer.test.tsxindex 2267c5500c..125c8f7ce0 100644--- a/frontend-modern/src/components/Workloads/NodeDrawer.test.tsx+++ b/frontend-modern/src/components/Workloads/NodeDrawer.test.tsx@@ -268,7 +268,7 @@ describe('NodeDrawer', () => {expect(details).not.toHaveAttribute('open');expect(within(details).getByText('12.9 W')).not.toBeVisible();fireEvent.click(within(details).getByText('Details'));- const hardware = within(details).getByText('Hardware').closest('tr')!;+ const hardware = within(details).getByText('Hardware').closest('tbody')!;expect(hardware).toHaveTextContent('CPU Core Power6.2 W');expect(hardware).toHaveTextContent('CPU Package Power12.9 W');expect(hardware).toHaveTextContent('DRAM Power1.7 W');diff --git a/frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx b/frontend-modern/src/components/Workloads/NodeDrawerOverview.tsxindex ab884f8eda..7c6544cdb3 100644--- a/frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx+++ b/frontend-modern/src/components/Workloads/NodeDrawerOverview.tsx@@ -22,6 +22,10 @@ import {type DetailValueTone,} from '@/components/shared/DetailSectionTable';import type { Alert, Disk, HostGPUSensor, Node, Temperature } from '@/types/api';+import {+ buildPowerRows,+ HOST_AGENT_STOPPED_REPORTING_REASON,+} from '@/components/Infrastructure/resourceDetailMappers';import { alertTypeDisplayLabel } from '@/features/alerts/helpers';import { getAlertAttentionCopy } from '@/features/alerts/metricAlertPresentation';import { formatBytes, formatRelativeTime, normalizeDiskArray } from '@/utils/format';@@ -287,6 +291,13 @@ export function NodeDrawerOverview(props: NodeDrawerOverviewProps) {...(loadAverageLabel() !== '-'? [{ label: 'Load avg', value: loadAverageLabel() } satisfies NodeOverviewRow]: []),+ ...buildPowerRows(props.node.sensors?.powerWatts).map((row) => ({+ label: row.label,+ value: props.node.sensorsStale ? `${row.value} (last known)` : row.value,+ title: props.node.sensorsStale+ ? `Last known reading, not current: ${HOST_AGENT_STOPPED_REPORTING_REASON}`+ : row.valueTitle,+ })),];const memoryRows = (): NodeOverviewRow[] => [diff --git a/frontend-modern/src/types/api.ts b/frontend-modern/src/types/api.tsindex 44860da9d0..1739efcb2e 100644--- a/frontend-modern/src/types/api.ts+++ b/frontend-modern/src/types/api.ts@@ -183,6 +183,8 @@ export interface Node {cpuInfo: CPUInfo;/** Typed telemetry from a linked Unified Agent, when this PVE node is hybrid. */sensors?: HostSensorSummary;+ /** Client-only projection of the linked agent's reporting lease, not PVE API health. */+ sensorsStale?: boolean;temperature?: Temperature; // CPU/NVMe temperatures/*** The node's primary CPU temperature in Celsius, chosen by the backenddiff --git a/frontend-modern/src/utils/resourceStateAdapters.ts b/frontend-modern/src/utils/resourceStateAdapters.tsindex 527e6b0573..7582b8aa0e 100644--- a/frontend-modern/src/utils/resourceStateAdapters.ts+++ b/frontend-modern/src/utils/resourceStateAdapters.ts@@ -1467,6 +1467,7 @@ export const nodeFromResource = (resource: Resource): Node | null => {mhz: asString(cpuInfo?.mhz) || '0',},sensors: agentFacet?.sensors,+ sensorsStale: agentFacet?.stale === true,temperature: buildTemperature(resource, proxmox),// The backend's primary CPU reading: the agent's when one is linked, the// same source the node's history line reads.