From 50843e55f542e74c7cc0eb1e94170fa2546a8427 Mon Sep 17 00:00:00 2001 From: Antoni Sawicki Date: Thu, 28 Mar 2019 00:07:31 -0700 Subject: [PATCH] added load avg example --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 34c2442..efb1518 100644 --- 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