Crates.io | monit-tool |
lib.rs | monit-tool |
version | 0.2.1 |
source | src |
created_at | 2023-12-20 10:41:47.508464 |
updated_at | 2023-12-25 05:22:55.475883 |
description | command-line utility written in Rust for working with GitHub Actions |
homepage | |
repository | https://github.com/s00d/monit-tool |
max_upload_size | |
id | 1075181 |
size | 739,568 |
This Rust application provides a simple interface to monitor CPU and memory usage of processes running on your system. It allows users to filter and select a process from the list and displays real-time CPU and memory usage using colored graphs.
sysinfo
, dialoguer
, rgb
, textplots
.git clone https://github.com/s00d/monit-tool
cd ./monit-tool
cargo build --release
Before installing the monit-tool
package, you need to install Rust. Rust is a programming language that the package is built with. Here are the steps to install Rust:
Open a terminal or command prompt.
Visit the official Rust website at https://www.rust-lang.org/.
Follow the instructions on the website to download and install Rust for your operating system.
After the installation is complete, verify that Rust is installed correctly by running the following command in your terminal:
rustc --version
You can install the monit-tool
package using the cargo
utility. Make sure you have Rust compiler and cargo
tool installed.
Open a terminal or command prompt.
Run the following command to install the package:
cargo install monit-tool
monit-tool
The monit-tool
application accepts the following command-line parameters:
--name
or -n
: (Optional) Filter processes by their name. If you provide a name, the application will display only those processes whose names contain the specified string. For example, monit-tool --name firefox
will display processes related to Firefox. If you do not specify this parameter, the application will list all running processes.--watch
or -w
: (Optional) Enables continuous monitoring of the selected process. If the selected process terminates and then restarts, the application will automatically continue monitoring the new instance of this process. This is particularly useful for tracking processes that may restart during observation.--version
: Displays the version information of the monit-tool
application.--help
: Provides help information, displaying the available command-line options and their usage.--logging
or -l
: (Optional) Enables logging of monitoring data to a log file. If this option is enabled, the application will create a log file with a timestamped name to record the monitoring data. The log file will include CPU usage, memory usage, and, if enabled, disk write and disk read information for the selected process.--disk-write
: (Optional) Enables monitoring and display of disk write activity for the selected process. If this option is enabled, the application will include information about disk write usage in the monitoring chart.--disk-read
: (Optional) Enables monitoring and display of disk read activity for the selected process. If this option is enabled, the application will include information about disk read usage in the monitoring chart.Example usage with parameters:
monit-tool --name nginx --watch
This command filters the process list for 'nginx' and enables continuous monitoring, even if the 'nginx' process restarts.
Contributions, issues, and feature requests are welcome. Feel free to check issues page if you want to contribute.
Distributed under the MIT License. See LICENSE
for more information.