Skip to content

Instantly share code, notes, and snippets.

@warmans
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save warmans/d3ac9f57e6daa71d1606 to your computer and use it in GitHub Desktop.
Save warmans/d3ac9f57e6daa71d1606 to your computer and use it in GitHub Desktop.
cassandra GC log tail chart
#$4*10 alters the scale so if you set 10*100 each segment of a bar would be 1 100th of a second
tail -f /var/log/cassandra/gc.log.0 | while read line; do echo $line | head -c $(awk '{ print int($4*10) }') </dev/zero | tr '\0' '='; printf "|\n"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment