Repository navigation
Feature: read System Summary figures from Beszel - #124
Merged
Merged
Conversation
Adds Beszel as a source alongside Glances and the local machine. The provider reads the chosen system's latest one-minute record for CPU, memory, temperatures by sensor name, root and named filesystems, and IO wait, and the system record for uptime. Process count is not offered, since Beszel does not report one. Beszel is a PocketBase app, so a login returns a token rather than accepting a key, and the account collection differs between releases. Both collections are tried and the working one is remembered with its session. An expired token is not refused by PocketBase: the read rule applies instead and an unauthenticated list is empty, which is indistinguishable from a hub with no systems. An empty answer is therefore retried once with a fresh session before it is believed.
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.
Depends on #123, and is branched from it. Merge that first; this will be rebased onto
mainafterwards.Summary
beszeltostatProvider, withbeszelUrl,beszelUser, abeszelPasssecret, and abeszelSystempicker fed by asystemsendpoint.slotsgroup for Beszel: no Processes option, a sensor picker, filesystem-name labels for the two disk fields, and a group hint naming what the source does not report._superusersthenusers, caching the collection that answers together with its token, keyed by host.system_statsrecord of type1monto the widget's shape:cpu,mp,dp/dfor the root filesystem,efsby name for the rest,tfor named sensors,cpub[2]for IO wait, and the system record'sinfo.ufor uptime.sensorsendpoint through the provider dispatch, so each source fills the picker from its own sensor names.Testing
All green, including the Docker build. Added 10 tests for the provider, covering slot mapping, root and named filesystems, collection fallback and session reuse, session renewal on an empty read, a genuinely empty hub, a rejected password, a removed system, and both pickers.
Checklist