ttyplot

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

commit d17a2ed2d777a77cf8786166a6a77edfd5d90e77
parent 850cb76c14a7be865b503851ae04e94aff0bbfd1
Author: Antoni Sawicki <as@tenoware.com>
Date:   Thu, 25 Oct 2018 22:39:51 -0700

shortened snmp oids using { }

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

diff --git a/README.md b/README.md @@ -92,7 +92,7 @@ ttg -i 10 -u Mb 10.23.73.254 public 9 | gawk 'BEGIN { getline; } { print $5,$8; ### snmp network throughput for an interface using snmpdelta ``` -snmpdelta -v 2c -c public -Cp 10 10.23.73.254 1.3.6.1.2.1.2.2.1.10.9 1.3.6.1.2.1.2.2.1.16.9 | gawk '{ print $NF/1000/1000/10; fflush(); }' | ttyplot -2 -t "ifindex 9 throughput" -u Mb/s +snmpdelta -v 2c -c public -Cp 10 10.23.73.254 1.3.6.1.2.1.2.2.1.{10,16}.9 | gawk '{ print $NF/1000/1000/10; fflush(); }' | ttyplot -2 -t "interface 9 throughput" -u Mb/s ``` ### disk throughput from iostat @@ -111,7 +111,7 @@ ttyplot supports calculating rate on "counter" style metrics, the rate is divide ### snmp network throughput for an interface using snmpget ``` -{ while true; do snmpget -v 2c -c public 10.23.73.254 1.3.6.1.2.1.2.2.1.10.9 1.3.6.1.2.1.2.2.1.16.9 | awk '{ print $NF/1000/1000; }'; sleep 10; done } | ttyplot -2 -r -u "MB/s" +{ while true; do snmpget -v 2c -c public 10.23.73.254 1.3.6.1.2.1.2.2.1.{10,16}.9 | awk '{ print $NF/1000/1000; }'; sleep 10; done } | ttyplot -2 -r -u "MB/s" ``` ### prometheus node exporter disk throughput for sda device