Expand description
Data collection core shared by the rigtop TUI and GUI.
snapshot: the serializable measurement types exchanged between data sources and front-ends (also the wire format for remote monitoring).source: theDataSourcetrait and theLocalSourceimplementation.config: user configuration (sensor labels, SMART directory).system,gpu,smart,linux: the individual collectors;fill: when filesystems will be full.agent,remote: remote monitoring over SSH (rigtop --agentand theremote::RemoteSourcethat talks to it).demo: made-up hosts for trying the interface (--demo).snooze: alerts silenced for a while, shared by the front-ends.worker,view, [format]: front-end helpers shared by the TUI and the GUI (background polling thread, process table logic, units).
Re-exports§
pub use config::Config;pub use snapshot::Snapshot;pub use source::DataSource;pub use source::LocalSource;pub use source::MIN_POLL_INTERVAL;pub use source::ProcessSignal;pub use source::SourceError;
Modules§
- agent
- The agent protocol for remote monitoring, and the agent loop itself.
- config
- User configuration (
config.toml). - demo
- Made-up hosts for trying the interface and taking screenshots without
real hardware (
rigtop --demo,rigtop-gui --demo): a workstation training on two GPUs, a laptop on battery and a NAS that needs attention. - fill
- When filesystems will be full at their recent rate of growth.
- format
- Compact human-readable formatting for narrow terminal cells.
- gpu
- NVIDIA GPU statistics via NVML.
- hosts
- The hosts a front-end monitors: this machine plus remote hosts from the configuration and the command line.
- linux
- Linux-specific readers for
/sysand/proc. - public_
ip - The host’s public IPv4 address, as an outside service sees it: behind
NAT it is not on any interface. Looked up with the system’s
curl, in the background, at most everyPublicIpLookup::interval, and only when the user turned it on ([network] public_ip), as it contacts a third party. - remote
- A
DataSourcefor a remote host, reached by runningrigtop --agentthrough the system’sssh(OpenSSH;ssh.exeon Windows). - smart
- SMART health from smartctl JSON files.
- snapshot
- Serializable snapshot of everything rigtop displays.
- snooze
- Alerts silenced for a while: snoozed for an hour or a day, or until they
clear. A snoozed alert drops out of status dots, notifications and the
--watchcommand, and comes back (notified anew) when its time is up. - source
- Data sources: anything that can produce
Snapshots. - system
- Portable statistics via the
sysinfocrate: CPU load, memory, processes, network traffic and filesystem capacity. - update
- Updating rigtop: this machine’s copy to the latest release, and remote hosts to this machine’s version.
- view
- Front-end helpers shared by the TUI and the GUI: graph history, process table sorting/filtering joined with GPU usage, and small naming helpers.
- widget
- Widgets: small panels shown beside the monitor, for whatever else someone wants on the same screen. A widget is either built in (a large clock) or fed by any command, which rigtop runs periodically and whose output it renders.
- worker
- Background thread that owns the data source.