user@devops:~$ cat README.md
Load Monitor
# Description
Load Monitor is a Linux system load monitor that reads statistics from /proc/loadavg and /proc/stat in real time. Developed in C++23 with FTXUI for the interactive TUI interface, nlohmann_json for structured JSON output, and spdlog for logging. It displays load averages (1/5/15 min) with colored progress bars (green <50%, yellow 50-80%, red >80%), per-core utilization with delta calculation between successive reads, process statistics (running, blocked, total created), system context switches, and uptime. Includes JSON output mode for script integration and CLI text mode. The RAII architecture with std::expected provides robust exception-free error handling. The TUI interface uses FTXUI ScreenInteractive with periodic refresh via background thread and PostEvent. Tests with Catch2 cover parsing, utilization_pct calculation, uptime, and read benchmarks.
# Key features
$ Load averages (1/5/15 min) with colored progress bars (green <50%, yellow 50-80%, red >80%)
$ Per-core CPU utilization with delta calculation between successive reads
$ Process statistics: running, blocked, total created in the system
$ System context switches and uptime calculated from btime
$ JSON output (--json) and CLI text mode (--no-tui) for integration
$ FTXUI fullscreen interface with periodic refresh and PostEvent
$ Complete unit, integration, and benchmark test coverage with Catch2
# Gallery
# Technologies used