From 051cac1ea45863856f2ce029b3255459251d68af Mon Sep 17 00:00:00 2001 From: Andy Aylward Date: Mon, 29 Sep 2025 23:01:56 -0400 Subject: [PATCH] fix group names for CPU and Memory graphs --- src/apps/metrics-systems/components/MetricsDashboard.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/metrics-systems/components/MetricsDashboard.tsx b/src/apps/metrics-systems/components/MetricsDashboard.tsx index c19a332..7e4e7f0 100644 --- a/src/apps/metrics-systems/components/MetricsDashboard.tsx +++ b/src/apps/metrics-systems/components/MetricsDashboard.tsx @@ -797,7 +797,7 @@ const MetricsDashboard = ({ onConnectionStateChange, activeTab = 'system', onTab `${value}%`} /> [`${Number(value).toFixed(2)}%`, 'CPU']} + formatter={(value, name) => [`${Number(value).toFixed(2)}%`, name as string]} /> {containerTimeseries.series.filter(s => s.metric_name === 'cpu_usage' && s.labels?.name).map((s, i) => { const colors = [COLORS.primary, COLORS.success, COLORS.warning, COLORS.danger, COLORS.info, COLORS.secondary] @@ -901,7 +901,7 @@ const MetricsDashboard = ({ onConnectionStateChange, activeTab = 'system', onTab `${value}%`} /> [`${Number(value).toFixed(1)}%`, 'Memory']} + formatter={(value, name) => [`${Number(value).toFixed(1)}%`, name as string]} /> {containerTimeseries.series.filter(s => s.metric_name === 'memory_usage_percent' && s.labels?.name).map((s, i) => { const colors = [COLORS.primary, COLORS.success, COLORS.warning, COLORS.danger, COLORS.info, COLORS.secondary]