feat: add CPU load average to device metrics and dashboard#61
Merged
Conversation
Owner
|
Thanks for the PR, Ryan. Tested on a RAK V2 — load average card and metrics look good. Merged to \main; this will ship in the v0.7.5 release (no separate patch version). |
KMX415
added a commit
that referenced
this pull request
May 31, 2026
Resolve CHANGELOG and app.js conflicts: keep v0.7.5 CPU temp display and wire Load Avg card from PR #61.
Contributor
Author
|
Thank you! |
KMX415
added a commit
that referenced
this pull request
Jun 1, 2026
Version bump, CHANGELOG cut, and update-channel housekeeping (rc-076 / feat/v0.7.6). Includes PR #61 load average merged on main. 854 tests passing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the system 1/5/15-minute load average to the device metrics endpoint and
surfaces it as a new "Load Avg" card on the dashboard system stats row.
_read_load_avg()helper reads/proc/loadavg;GET /api/device/metricsnow returns
"load_avg": [1m, 5m, 15m](ornullon non-Linux hosts).Load Avgstat card showing the 1-min value with5m · 15msub-line,falling back to
N/Awhen unavailable — mirrors the existing CPU Temp card.Why
Load average is a standard, low-overhead health signal that complements the existing
CPU%, RAM, disk, and temperature stats — useful for spotting sustained load on
resource-constrained Pi devices without opening a shell.
Type
Testing
Added unit tests for the
/proc/loadavgparser (pass viapython -m unittest).Backend/JS changes follow the existing metrics + stat-card patterns. Not yet run on
Pi hardware; load values render
N/Aon Windows since/proc/loadavgis absent there.Hardware:
Impact
Does this affect:
Notes: Additive only — one new key on
/api/device/metricsand one new dashboardcard. No changes to existing metric fields, packet handling, or radio paths.
AI-assisted?
If yes, how: Reviewed works and tested with Claude Code (Anthropic). Author wrote main cod, reviewed bug fixes, and understands all changes being made.