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 thermal pressure in machine temperature cells
rcourtmanb9d28a2f83f0
diff --git a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md b/docs/release-control/v6/internal/subsystems/performance-and-scalability.mdindex fa38d17b18..d3026e0667 100644--- a/docs/release-control/v6/internal/subsystems/performance-and-scalability.md+++ b/docs/release-control/v6/internal/subsystems/performance-and-scalability.md@@ -758,11 +758,12 @@ only after a grouped node row is selected. Host-agent CPU temperature must bepersisted into the same metrics-store history stream as other agent metrics,with current node temperature used only as drawer-local fallback while historyis still accumulating.-Standalone agent thermal pressure follows the same drawer-only density rule:-`resourceDetailMappers.ts` may render compact pressure and throttling-limit rows-inside the selected system's thermals card, but platform and Workloads table-temperature cells must remain blank when the source has no positive Celsius-reading.+Standalone agent thermal pressure follows a compact table-and-drawer rule:+platform tables may show a short pressure status such as `Nominal` or+`Constrained` in the existing temperature cell when no positive Celsius reading+exists, while `resourceDetailMappers.ts` owns the fuller thermals-card rows for+pressure source and throttling limits. The table fallback must stay row-local+and must not add history reads, polling work, or a second thermal query path.The Proxmox node drawer overview should follow the existing guest drawercompact detail-card pattern and expose node-specific context such as platform,kernel, hardware, raw capacity, telemetry, and thermal facts rather thandiff --git a/docs/release-control/v6/internal/subsystems/unified-resources.md b/docs/release-control/v6/internal/subsystems/unified-resources.mdindex 7b11855e90..6bb4d650e9 100644--- a/docs/release-control/v6/internal/subsystems/unified-resources.md+++ b/docs/release-control/v6/internal/subsystems/unified-resources.md@@ -314,10 +314,12 @@ normalization/clamping when the source metric requires it, positive Celsiusvalidation, tabular styling, and empty markers instead of local`formatPercent`, `formatPercentLabel`, `toFixed(1)%`, `formatTemperature`, ortemperature label helpers.-Thermal pressure state is a separate host sensor facet, not a table temperature-source. Unified-resource adapters must carry `agent.sensors.thermalState`-alongside `temperatureCelsius`, and table consumers must continue to render an-empty temperature marker when only pressure state is present.+Thermal pressure state is a separate host sensor facet, not a Celsius+temperature source. Unified-resource adapters must carry+`agent.sensors.thermalState` alongside `temperatureCelsius`; table consumers+may render that pressure as compact status text only when no numeric+temperature exists, and must not convert pressure into a Celsius metric or+history target.Metric bar fallbacks follow that split as well: unified-resource consumers ownwhich CPU or memory value is selected, plus any source-specific fallback reasonsuch as outdated standalone agent telemetry, while platform tables must usediff --git a/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx b/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsxindex f15b1eb4c5..f1ce598391 100644--- a/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx+++ b/frontend-modern/src/components/Infrastructure/UnifiedResourceHostTableCard.tsx@@ -58,13 +58,48 @@ import {} from './useUnifiedResourceTableState';import { shouldShowClusterGroupTypeLabel } from './unifiedResourceTableStateModel';import { getOutlierEmphasis, isResourceOnline } from './unifiedResourceTableModel';-import { getCpuPercent, getDiskPercent, getMemoryPercent } from '@/types/resource';+import { type Resource, getCpuPercent, getDiskPercent, getMemoryPercent } from '@/types/resource';interface UnifiedResourceHostTableCardProps {tableProps: UnifiedResourceTableProps;table: UnifiedResourceTableState;}+type ThermalPressurePresentation = {+ label: string;+ title: string;+ className: string;+};++const getThermalPressurePresentation = (resource: Resource): ThermalPressurePresentation | null => {+ const thermalState = resource.agent?.sensors?.thermalState;+ if (!thermalState) return null;++ const pressure = thermalState?.pressure?.trim().toLowerCase();+ if (!pressure) return null;++ const label =+ pressure === 'nominal' ? 'Nominal' : pressure === 'constrained' ? 'Constrained' : 'Unknown';+ const className =+ pressure === 'nominal'+ ? 'text-emerald-600 dark:text-emerald-400'+ : pressure === 'constrained'+ ? 'text-amber-600 dark:text-amber-400'+ : 'text-slate-500 dark:text-slate-400';+ const limits = Object.entries(thermalState.limitsPercent ?? {})+ .filter(([, value]) => Number.isFinite(value) && value < 100)+ .sort(([a], [b]) => a.localeCompare(b))+ .map(([key, value]) => `${key.replace(/_/g, ' ')} ${Math.round(value)}%`);+ const source = thermalState.source ? ` via ${thermalState.source}` : '';+ const limitSummary = limits.length > 0 ? `; limits: ${limits.join(', ')}` : '';++ return {+ label,+ className,+ title: `Thermal pressure ${label.toLowerCase()}${source}${limitSummary}`,+ };+};+export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCardProps> = (props,) => {@@ -330,6 +365,7 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCarconst availabilityProbe = createMemo(() =>getAvailabilityProbePresentation(resource),);+ const thermalPressure = createMemo(() => getThermalPressurePresentation(resource));const resourceRowInteraction = createSummaryInteractiveRowPreviewHandlers({onPreview: () => tableProps.onHoverChange?.(resource.id),onPreviewClear: () => tableProps.onHoverChange?.(null),@@ -677,9 +713,23 @@ export const UnifiedResourceHostTableCard: Component<UnifiedResourceHostTableCar<Showwhen={resource.temperature != null}fallback={- <span class="text-xs text-slate-400" aria-hidden="true">- —- </span>+ <Show+ when={thermalPressure()}+ fallback={+ <span class="text-xs text-slate-400" aria-hidden="true">+ —+ </span>+ }+ >+ {(thermal) => (+ <span+ class={`text-[11px] whitespace-nowrap font-medium ${thermal().className}`}+ title={thermal().title}+ >+ {thermal().label}+ </span>+ )}+ </Show>}><spandiff --git a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsxindex 18948c6fdb..b319f455e1 100644--- a/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx+++ b/frontend-modern/src/components/Infrastructure/__tests__/UnifiedResourceTable.performance.contract.test.tsx@@ -188,6 +188,40 @@ describe('UnifiedResourceTable performance contract', () => {expect(container.querySelector('[style]')).toBeNull();});+ it('renders thermal pressure in the temperature column when Celsius is unavailable', async () => {+ const resources = [+ makeResource(1, {+ type: 'agent',+ platformType: 'agent',+ sourceType: 'agent',+ temperature: undefined,+ agent: {+ platform: 'macos',+ sensors: {+ thermalState: {+ source: 'pmset',+ pressure: 'nominal',+ },+ },+ },+ }),+ ];++ const { getByText } = render(() => (+ <UnifiedResourceTable+ resources={resources}+ expandedResourceId={null}+ onExpandedResourceChange={vi.fn()}+ groupingMode="flat"+ />+ ));++ await waitFor(() => {+ expect(getByText('Nominal')).toBeInTheDocument();+ });+ expect(getByText('Nominal')).toHaveAttribute('title', 'Thermal pressure nominal via pmset');+ });+it('renders reported host identity instead of container runtime as the primary system badge', async () => {const resources = [makeResource(1, {