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"
{ while true; do dig google.com | kazy -i "Query time" | kazy -r -x "[\d.]*"; sleep 1; done } | ttyplot -t "dig to google.com"
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
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