DIY Amazon EC2 Spot Instances price chart

| 0 Comments | 0 TrackBacks
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

  1. 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

  2. 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.txt
3. 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.


No TrackBacks

TrackBack URL: http://www.sci-blog.com/mt/mt-tb.cgi/140

Leave a comment

Recent Entries

Particle filter and Rao Blackwellised particle filter
View imageAny improvements?Detection errors----------------------------- PF      = 0RBPF    = 0  Execution time  (seconds)------------------------- PF      = 6.4465RBPF    = 11.6923…
Pingfire 1.0.4 compatible with firefox 3.6
Updated version of pingfire extension. This is my fork with bit.ly supportScreenshot View imagepingfire.xpi…
Updated pingfire extension
Pingfire firefox extension compatible with 3.6.2 firefox. Usual disclaimer: I do it for my own use so no guarantee it…