I want to script a daily report开发者_运维技巧 of all EC2 usage and send the summary to my stakeholders. Are there systems already in place to do this or has someone already built a script for this?
At the most basic level that most users of EC2 experience, the answer is no. However, Amazon developed DevPay to support all of the billing infrastructure.
You may find it easier to adapt to DevPay as it records all of the itemized & aggregate usage, so that you can avoid dealing with why your #s may not match up with AWS's.
Keep in mind that although the DevPay site describes billing your clients, you can set up accounts and act as the middle-man for accounting, if you would prefer not to set up EC2 utilization for your clients. This consideration depends on whether or not you are doing the computation or they are.
Other options for such services are:
- Cloudrows.com
- Ylastic
- RightScale
Update 1: If you are looking for other metrics of usage than price information, Amazon's CloudWatch may be the answer.
There is no easy way to my knowledge to write a script to do this. I would consider using cloud management softwares. They provide monitoring tools to track EC2/S3 usage, offering either their custom tools or integrating Amazon CloudWatch. Ylastic and RightScale are two of them, but you can check out as well Scalr (disclaimer: I work there) or enStratus. Alerts and notifications (via email or SMS) are currently on our roadmap.
精彩评论