/mysql_watcher/io_plot
#! | 28 lines | 28 code | 0 blank | 0 comment | 0 complexity | 5271c6ccf28c27ad512d028061938db6 MD5 | raw file
- set terminal png size 1024,1024
- set output "output.png"
- set multiplot
- set grid x y
- set size 1,0.33
- set key default
- set xlabel "Date"
- set ylabel "% IO"
- set y2label "ops/sec"
- set timefmt "%H:%M:%S"
- set xdata time
- set format x "%H:%M"
- set tics out
- set autoscale y
- set autoscale y2
- set origin 0.0, 0.66
- plot 'io.txt' using 1:2 title "IO %" with lines axes x1y1, \
- 'io.txt' using 1:3 title "r/s" with lines axes x1y2, \
- 'io.txt' using 1:4 title "w/s" with lines axes x1y2
- set origin 0.0, 0.33
- plot 'io.txt' using 1:2 title "IO %" with lines axes x1y1
- set origin 0.0, 0.0
- set ylabel "ops/sec"
- plot 'io.txt' using 1:3 title "r/s" with lines axes x1y1, \
- 'io.txt' using 1:4 title "w/s" with lines axes x1y1
- unset multiplot
- #plot 'io.txt' using 1:3 title "r/sec" with lines
- #plot 'io.txt' using 1:4 title "w/sec" with lines