plot/

Monitor DNS query time

{ while true; do dig google.com | kazy -i "Query time" | kazy -r -x "[\d.]*"; sleep 1; done } | ttyplot -t "dig to google.com"
| 12 Apr 2023

Plot real time ping data in terminal

Install ttyplot:

grm install tenox7/ttyplot -n ttyplot

Ping plot:

ping 8.8.8.8 | sed -u 's/^.*time=//g; s/ ms//g' | ttyplot -t "ping to 8.8.8.8" -u ms

More examples

| 12 Apr 2023

Monitor IO disk utilization

Install sysstat package:

sudo dnf install sysstat -y

Install ttyplot to plot data and kazy to extract data with grm

grm install jsnjack/kazy-go
grm install tenox7/ttyplot==1.6.1 -n ttyplot -l

Check available disk partitions with df command. nvme0n1 is used in example:

iostat -dx 1 | kazy -i nvme0n1 | kazy -r -x "[\d.]*$" | ttyplot -s 100
| 10 May 2022