Skip to content

Rewrite system monitoring to use OSHI#2255

Merged
Gold856 merged 42 commits intoPhotonVision:mainfrom
crschardt:feat/oshi-metrics-manager
Jan 2, 2026
Merged

Rewrite system monitoring to use OSHI#2255
Gold856 merged 42 commits intoPhotonVision:mainfrom
crschardt:feat/oshi-metrics-manager

Conversation

@crschardt
Copy link
Contributor

@crschardt crschardt commented Dec 24, 2025

Description

OSHI is a free (MIT license) JNA-based library for accessing hardware and system performance information. This PR includes a re-write of the metrics monitoring code to be based on OSHI. The original intent was to gain access to data about network traffic for addition to the Settings tab. An additional benefit is that collecting the data is now around two orders of magnitude (or more) faster!

Meta

Merge checklist:

  • Pull Request title is short, imperative summary of proposed changes
  • The description documents the what and why
  • If this PR changes behavior or adds a feature, user documentation is updated
  • If this PR touches photon-serde, all messages have been regenerated and hashes have not changed unexpectedly
  • If this PR touches configuration, this is backwards compatible with settings back to v2025.3.2
  • If this PR touches pipeline settings or anything related to data exchange, the frontend typing is updated
  • If this PR addresses a bug, a regression test for it is added

@github-actions github-actions bot added frontend Having to do with PhotonClient and its related items backend Things relating to photon-core and photon-server labels Dec 24, 2025
@samfreund
Copy link
Member

Works on my laptop/rubik, remove fetch button, add current monitoring for rubik if possible so we can warn when we're under 12v.

@crschardt crschardt requested a review from a team as a code owner January 1, 2026 18:16
samfreund
samfreund previously approved these changes Jan 1, 2026
@crschardt crschardt enabled auto-merge (squash) January 1, 2026 21:07
@Gold856 Gold856 disabled auto-merge January 1, 2026 21:09
@crschardt crschardt requested a review from Gold856 January 2, 2026 22:03
@Gold856 Gold856 linked an issue Jan 2, 2026 that may be closed by this pull request
@Gold856 Gold856 merged commit 5409573 into PhotonVision:main Jan 2, 2026
70 of 80 checks passed
@crschardt crschardt deleted the feat/oshi-metrics-manager branch January 3, 2026 04:27
crschardt added a commit that referenced this pull request Jan 30, 2026
…tation (#2343)

## Description

#2255 introduced a new, cross-platform method for monitoring hardware
and removed the custom shell commands that had been used previously.
This PR updates the documentation to reflect the removal of those
commands from hardwareConfig.json.

## Meta

Merge checklist:
- [x] Pull Request title is [short, imperative
summary](https://cbea.ms/git-commit/) of proposed changes
- [x] The description documents the _what_ and _why_, including events
that led to this PR
- [ ] If this PR changes behavior or adds a feature, user documentation
is updated
- [ ] If this PR touches photon-serde, all messages have been
regenerated and hashes have not changed unexpectedly
- [ ] If this PR touches configuration, this is backwards compatible
with all settings going back to the previous seasons's last release
(seasons end after champs ends)
- [ ] If this PR touches pipeline settings or anything related to data
exchange, the frontend typing is updated
- [ ] If this PR addresses a bug, a regression test for it is added

---------

Co-authored-by: Gold856 <117957790+Gold856@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend Things relating to photon-core and photon-server frontend Having to do with PhotonClient and its related items

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NpuUsageCommand is not included in the hardware config

3 participants