[PR #761] [MERGED] Enhance server monitoring with load average data and new server monitoring table #778

Closed
opened 2025-10-31 15:21:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 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.1Head: more-stats


📝 Commits (10+)

  • 62e8e49 add monitoring page
  • 8ad6808 initial table
  • 0840892 moving monitoring table to servers
  • b79b907 add cpu load average
  • b04d731 typeshare doesnt allow tuples
  • 057d61d fix GetHistoricalServerStats
  • cf1fbab add loadAvg to the server monitoring table
  • c1bd15d improve styling
  • 48335fe Merge remote-tracking branch 'origin/1.19.1' into more-stats
  • b752867 add 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

  • added a SystemLoadAverage type in Rust (stats.rs) and TypeScript (types.ts).
  • added load_average fields to SystemStatsRecord and SystemStats so load averages are included in API responses.

Frontend changes

  • added a new ServerMonitoringTable that 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).
  • updated StatChart and InnerStatChart to support a new “Load Average” stat type. They now render the 1m, 5m, and 15m load series as line charts.
image image Screenshot From 2025-08-24 01-03-33 image image image

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/moghtech/komodo/pull/761 **Author:** [@jackra1n](https://github.com/jackra1n) **Created:** 8/24/2025 **Status:** ✅ Merged **Merged:** 8/24/2025 **Merged by:** [@mbecker20](https://github.com/mbecker20) **Base:** `1.19.1` ← **Head:** `more-stats` --- ### 📝 Commits (10+) - [`62e8e49`](https://github.com/moghtech/komodo/commit/62e8e4948032818c0caaa3f1e8e42368a908a221) add monitoring page - [`8ad6808`](https://github.com/moghtech/komodo/commit/8ad68085fe81d8ab3302465d2e98a633889ca4fe) initial table - [`0840892`](https://github.com/moghtech/komodo/commit/08408929eaaa338c3d01097a21224238016a236a) moving monitoring table to servers - [`b79b907`](https://github.com/moghtech/komodo/commit/b79b9077ac4075930bf0dc8c76f48a1d828f8634) add cpu load average - [`b04d731`](https://github.com/moghtech/komodo/commit/b04d731a2f2dccb18b691b44cb88c72030bd1746) typeshare doesnt allow tuples - [`057d61d`](https://github.com/moghtech/komodo/commit/057d61dbbb94d4a13b12e6d121b972d479314de9) fix GetHistoricalServerStats - [`cf1fbab`](https://github.com/moghtech/komodo/commit/cf1fbabf17ccbeb9e023663ec561a9ad15da2427) add loadAvg to the server monitoring table - [`c1bd15d`](https://github.com/moghtech/komodo/commit/c1bd15d03f43ab5eca417493471a96c3bbb4265d) improve styling - [`48335fe`](https://github.com/moghtech/komodo/commit/48335feacbcafca4f93311252f57b2d3b5ca383b) Merge remote-tracking branch 'origin/1.19.1' into more-stats - [`b752867`](https://github.com/moghtech/komodo/commit/b752867ca749f92aa0b4e01f3522f2984531e31d) add load average chart ### 📊 Changes **10 files changed** (+427 additions, -40 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 Description This PR adds system load average metrics (1m, 5m, 15m) across the backend and frontend to improve monitoring and visualization. **Backend / API changes** * added a `SystemLoadAverage` type in Rust (`stats.rs`) and TypeScript (`types.ts`). * added `load_average` fields to `SystemStatsRecord` and `SystemStats` so load averages are included in API responses. **Frontend changes** * added a new `ServerMonitoringTable` that 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). * updated `StatChart` and `InnerStatChart` to support a new “Load Average” stat type. They now render the 1m, 5m, and 15m load series as line charts. <img width="1965" height="575" alt="image" src="https://github.com/user-attachments/assets/0e5a37d8-ea87-49b9-9838-afb2098fc37f" /> <img width="1965" height="575" alt="image" src="https://github.com/user-attachments/assets/37a1fb6c-3c77-4099-a5e7-a3ed6db858f2" /> <img width="823" height="400" alt="Screenshot From 2025-08-24 01-03-33" src="https://github.com/user-attachments/assets/a7ab13f0-eab5-41ea-bc1c-76f20115f08d" /> <img width="851" height="395" alt="image" src="https://github.com/user-attachments/assets/7fb78c1a-50c5-4b15-a620-da037b8ec8d7" /> <img width="2003" height="420" alt="image" src="https://github.com/user-attachments/assets/4d0dde32-135a-4f85-8f68-c85130b8cbb4" /> <img width="1936" height="408" alt="image" src="https://github.com/user-attachments/assets/d5ad1d3a-6c9c-444d-8875-944f6a09ea7f" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-10-31 15:21:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/komodo#778