peterknife / boto

Automatically exported from code.google.com/p/boto
0 stars 0 forks source link

Cloudwatch: get_metric_statistics() sometimes returns empty list #497

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.
        data_list = conn.get_metric_statistics(60, start,end,metric,'AWS/EC2','Average', instance_id)

Original issue reported on code.google.com by aesteban...@outlook.com on 20 Mar 2011 at 1:19

GoogleCodeExporter commented 9 years ago
Sorry - hit Return too quickly.

I have written a script that makes this call to Boto 0.9b: 

data_list = conn.get_metric_statistics(60, 
start,end,metric,'AWS/EC2','Average', instance_id)

Most of the time (90% of the time), this returns the expected information. 
However, sometimes data_list comes back empty. I have a (partial) theory that 
if I re-issue the call frequently (every couple seconds) it will fail, and then 
continue to fail until I pause for many (10 or so) seconds. 

This occurs on OSX 10.6 using Python 2.6.4. Any ideas why this would happen? 
Many thanks.

Rich Brown
Hanover, NH

Original comment by aesteban...@outlook.com on 20 Mar 2011 at 1:27