99designs/vacuumetrix — pull request #4 by tacchino (2013-05-01 14:40:33+00:00)
Title: Dynamo

Added a script for pulling Dynamo stats, however it has changes from your standard pattern so not sure if you will want this as is.

Accepts arguments for the start and end offsets defining the fetch period
Accepts multiple table names
Utilizes the timestamp returned from Cloudwatch instead of the offset time
Iterates over all results instead of just the first
Ignores empty stats instead of initializing to zero

The idea is to allow the script to be run at a frequency that would result in multiple metric values being returned. For example, ELB could be run at a 5 min frequency and pull 5 one minute metrics. Could also be used to pull data from periods further in the past.

I modified the ELB script to follow the same pattern with the exception of ignoring empty values, so that behavior remains as it was.

Feel free to take in part or none or if you have suggestions for mods let me know.