An API for generating json, and UI for generating graphs from AWS cloudwatch metric data. Graphing done with flot. Enhancements welcomed!
To generate json:
localhost/cloudwatch-livegraph/json.php?ns=AWS/EC2&metric=RequestCount&start=-8%20hours&end=now&interval=60&id=i-baba23342&dim=InstanceId&mtype=Sum&utype=Count
Go generate graphs:
localhost/cloudwatch-livegraph/graph.php
PHP SDK for Amamazon AWS must be properly installed and configured with your AWS credentials. aws-sdk-for-php
Combinations of the metric parameters are tricky. Querying AWS for them takes an enormous amount of time. Currently the data is stored in metrics.json.