ttyplot

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

commit 57678e76ae4533048575229eadd200f4ada06941
parent d17a2ed2d777a77cf8786166a6a77edfd5d90e77
Author: Antoni Sawicki <as@tenoware.com>
Date:   Fri, 26 Oct 2018 01:30:24 -0700

awk to grep/cut for prometheus

Diffstat:
MREADME.md | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -66,9 +66,9 @@ ping 8.8.8.8 | sed -u 's/^.*time=//g; s/ ms//g' | ttyplot -t "ping to 8.8.8.8" - { while true; do curl -s https://api.iextrading.com/1.0/stock/googl/price; echo; sleep 600; done } | ttyplot -t "google stock price" -u usd ``` -### prometheus remote load average via node exporter +### prometheus load average via node exporter ``` -{ while true; do curl -s http://10.4.7.180:9100/metrics | awk '/^node_load1 / { print $2 }'; sleep 1; done } | ttyplot +{ while true; do curl -s http://10.4.7.180:9100/metrics | grep "^node_load1 " | cut -d" " -f2; sleep 1; done } | ttyplot ``` &nbsp;