Last active
January 8, 2019 23:01
-
-
Save canimus/c7cabe7dd8184c656f7974a8552a6690 to your computer and use it in GitHub Desktop.
termgraph with query to influxdb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http :8086/query?db=telegraf \ | |
"q==select stddev(Bytes_Sent_persec) from win_websrv where host =~ /3020/ group by time(1d) fill(0)" \ | |
'Accept: application/csv' | | |
tail -n +2 | | |
awk -F, '{print strftime("%Y-%m-%d", $3/1000000000)","$4}' | | |
termgraph --calendar --start-dt 2018-06-01 --color green |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment