mirror of
https://github.com/moghtech/komodo.git
synced 2026-03-09 07:13:36 -05:00
[PR #761] [MERGED] Enhance server monitoring with load average data and new server monitoring table #778
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/761
Author: @jackra1n
Created: 8/24/2025
Status: ✅ Merged
Merged: 8/24/2025
Merged by: @mbecker20
Base:
1.19.1← Head:more-stats📝 Commits (10+)
62e8e49add monitoring page8ad6808initial table0840892moving monitoring table to serversb79b907add cpu load averageb04d731typeshare doesnt allow tuples057d61dfix GetHistoricalServerStatscf1fbabadd loadAvg to the server monitoring tablec1bd15dimprove styling48335feMerge remote-tracking branch 'origin/1.19.1' into more-statsb752867add load average chart📊 Changes
10 files changed (+427 additions, -40 deletions)
View changed files
📝
bin/core/src/monitor/record.rs(+1 -0)📝
bin/periphery/src/stats.rs(+8 -1)📝
client/core/rs/src/entities/stats.rs(+17 -0)📝
client/core/ts/src/types.ts(+13 -0)📝
frontend/public/client/types.d.ts(+12 -0)📝
frontend/src/components/resources/server/index.tsx(+21 -0)➕
frontend/src/components/resources/server/monitoring-table.tsx(+190 -0)📝
frontend/src/components/resources/server/stat-chart.tsx(+54 -27)📝
frontend/src/components/resources/server/stats.tsx(+68 -0)📝
frontend/src/pages/resources.tsx(+43 -12)📄 Description
This PR adds system load average metrics (1m, 5m, 15m) across the backend and frontend to improve monitoring and visualization.
Backend / API changes
SystemLoadAveragetype in Rust (stats.rs) and TypeScript (types.ts).load_averagefields toSystemStatsRecordandSystemStatsso load averages are included in API responses.Frontend changes
ServerMonitoringTablethat shows CPU, memory, disk, load average, network, and agent version for all servers. You can switch between the regular resources list and this new table with a toggle (saved in local storage).StatChartandInnerStatChartto support a new “Load Average” stat type. They now render the 1m, 5m, and 15m load series as line charts.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.