Show Me A Graph - Command Line Graphing
Easily create graphs from cli commands and view them in the terminal. Like the watch command but with a graph of the output.
git clone https://github.com/aantn/smag.git
cargo install --path .Binaries for Mac, Windows, and Linux are available under Releases.
Just run smag [shell_cmd] or smag [cmd1] [cmd2] if you want to graph multiple commands at once.
You can control how often the graph updates with the -n flag. You can also graph a derivative of the command's output using -d.
smag can graph any command which outputs an integer or float. Any whitespace before/after the number is trimmed automatically.
Pull requests for more features or fixes are welcome.
smag "ps aux | wc -l"smag "ps aux | grep ssh | wc -l" "ps aux | grep bash | wc -l"smag "kubectl get pods -A | grep Running | wc -l"sudo -v && smag -n 0.5 -y °C "sudo vcgencmd measure_temp | tr -d -c 0-9."…smag was inspired and based on code from the wonderful gping tool by Tom Forbes
I also work on Robusta - better Prometheus based alerts for Kubernetes.
No open issues yet, or sync has not completed.