Created
August 24, 2012 06:59
-
-
Save siroken3/3446921 to your computer and use it in GitHub Desktop.
botoで cloudwatch の RDSメトリクス取得方法
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env python | |
from datetime import datetime, timedelta | |
end = datetime.now() | |
start = end - timedelta(hours=1) | |
data = conn.get_metric_statistics(60, start, end, "CPUUtilization","AWS/RDS","Average", { 'DBInstanceIdentifier' : 'activity' }, 'Percent') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment