miércoles, 9 de diciembre de 2015

First gnuplot graphic

I had to check the temperature behavior on a device and had to sample each second creating a text file.

Cleaning the raw text file to get only the temperature column with awk, something like: awk '{print $10}' output.log > celcius.log was the second step.

And finally a small gnuplot script to fetch the celcius.log file which contained only 2 digits by row:
45
43
44
40
45
40
.
.
.

Gnuplot script to generate a png file:

set term png
set output "celcius.png"
set ylabel "C"
set xtic auto
plot "celcius.log"

And the final result:


AWS cpu steal time from T2 to T3 chart

The chart shows the same workload from T2 and then to T3. With metrics collected from OpsWorks