ttyplot

Realtime terminal plotter
git clone git://git.sgregoratto.me/ttyplot
Log | Files | Refs | README | LICENSE

commit 50843e55f542e74c7cc0eb1e94170fa2546a8427
parent cd03b11002b469bc70c58c5d008d875a3013db45
Author: Antoni Sawicki <tenox@google.com>
Date:   Thu, 28 Mar 2019 00:07:31 -0700

added load avg example
Diffstat:
MREADME.md | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -41,6 +41,11 @@ sar -r 1 | perl -lane 'BEGIN{$|=1} print "@F[5]"' | ttyplot -s 100 -t "memory us vmstat -n 1 | perl -lane 'BEGIN{$|=1} print "@F[0,1]"' | ttyplot -2 -t "procs in R and D state" ``` +### load average via uptime and awk +``` +{ while true; do uptime | gawk '{ gsub(/,/, ""); print $(NF-2) }'; sleep 1; done } | ttyplot -t "load average" -s load +``` + ### ping plot with sed ``` ping 8.8.8.8 | sed -u 's/^.*time=//g; s/ ms//g' | ttyplot -t "ping to 8.8.8.8" -u ms