PageRenderTime 93ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 1ms

/mysql_watcher/io_plot

https://bitbucket.org/lindenlab/apiary/
#! | 28 lines | 28 code | 0 blank | 0 comment | 0 complexity | 5271c6ccf28c27ad512d028061938db6 MD5 | raw file
  1. set terminal png size 1024,1024
  2. set output "output.png"
  3. set multiplot
  4. set grid x y
  5. set size 1,0.33
  6. set key default
  7. set xlabel "Date"
  8. set ylabel "% IO"
  9. set y2label "ops/sec"
  10. set timefmt "%H:%M:%S"
  11. set xdata time
  12. set format x "%H:%M"
  13. set tics out
  14. set autoscale y
  15. set autoscale y2
  16. set origin 0.0, 0.66
  17. plot 'io.txt' using 1:2 title "IO %" with lines axes x1y1, \
  18. 'io.txt' using 1:3 title "r/s" with lines axes x1y2, \
  19. 'io.txt' using 1:4 title "w/s" with lines axes x1y2
  20. set origin 0.0, 0.33
  21. plot 'io.txt' using 1:2 title "IO %" with lines axes x1y1
  22. set origin 0.0, 0.0
  23. set ylabel "ops/sec"
  24. plot 'io.txt' using 1:3 title "r/s" with lines axes x1y1, \
  25. 'io.txt' using 1:4 title "w/s" with lines axes x1y1
  26. unset multiplot
  27. #plot 'io.txt' using 1:3 title "r/sec" with lines
  28. #plot 'io.txt' using 1:4 title "w/sec" with lines