This is a short example how to build very simple chart for EC2 Spot Instances using Timeplot
Following Eric Hammond example
We are going to plot ec2 c1.medium prices against c1.medium in eu-west-1, to see how more expensive amazon ec2 instances in Europe
Grab EC2 spot instance price:
ec2-describe-spot-price-history -t c1.medium -d Linux/UNIX | perl -ane 'print "$F[2],$F[1]\n"'>>data_ec2.txt
- Add --region eu-west-1 to the command above so:
ec2-describe-spot-price-history --region eu-west-1 -t c1.medium -d Linux/UNIX | perl -ane 'print "$F[2],$F[1]\n"'>>data_ec2_eu.txt3. You also need to use two files time-plot.js and html file
4. Save them in one directory (or use correct file paths)
5. That's it, folks. It should look like this.
Leave a comment