Is it possible to show AWS CloudWatch metrics graphs on your own dashboard webpage?
As a basic start, try checking out Google app engine for hosting this project.
Check out the basics of Boto. Then look at using Boto to access cloudwatch data. Build a client that outputs the data you want to the terminal when a function is called.
Take the basic appengine tutorial. Then, look up the basics of webapp2 and the Jinja templating enjine. Make basic pages.
Then, tie this in with your python program. Start the webapp2 file with import [name of your couldwatch python file in the same folder]
. Then, in the get
handler in your webapp2 program, send [name imported].[function-name]()
to your Jinja template to make the page.
This should take a few hours to complete.
Important: There is a reason that Amazon keeps this data behind a login page. Think deeply about the security implications of what you are doing.
I highly recommend password-protecting the webpage that will display the data. If you will already be signed into your Google account, the super-simple way is to use google app engine's built in login mechanism to require administrator login.
This post describes the exact steps (official AWS documentation) to do this: https://aws.amazon.com/blogs/devops/building-an-amazon-cloudwatch-dashboard-outside-of-the-aws-management-console/
You'll need to use CloudWatch snapshot graphs to achieve the same.