mirror of
https://github.com/csehviktor/status-monitor.git
synced 2026-04-29 00:27:35 +02:00
implement cpu temperature
This commit is contained in:
@@ -37,7 +37,7 @@ export function AgentPage() {
|
||||
}, [agent, period]);
|
||||
|
||||
const { metrics } = message ?? {};
|
||||
const { cpuData, memoryData, networkData } = useChartData(
|
||||
const { cpuData, cpuTempData, memoryData, networkData } = useChartData(
|
||||
period === "realtime" ? message! : history,
|
||||
);
|
||||
|
||||
@@ -177,6 +177,10 @@ export function AgentPage() {
|
||||
|
||||
<div className="grid grid-cols-1 lg:grid-cols-2 gap-6 my-8">
|
||||
<LineChartCard title="CPU Usage" data={cpuData} />
|
||||
<LineChartCard
|
||||
title="CPU Temperature"
|
||||
data={cpuTempData}
|
||||
/>
|
||||
<LineChartCard
|
||||
title="Memory Usage"
|
||||
data={memoryData}
|
||||
|
||||
Reference in New Issue
Block a user