Is it possible to show AWS CloudWatch metrics graphs on your own dashboard webpage?

It would save the hassle of logging into the AWS console when something weird is going on.


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.

  • 1
    I like to think that this post of mine is what inspired Amazon to make this possible. – paradroid Sep 24 '19 at 16:58

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.

  • That looks like a fun project. Thanks. Of course my dashboard and admin pages are protected with HTTPS and digest authentication. – paradroid May 10 '15 at 22:47
  • @paradroid Google app engine will make very secure login even easier, I highly recommend it – Daniel F May 10 '15 at 22:51
  • Sure, I'll check it out. Cheers. – paradroid May 10 '15 at 23:27
  • 1
    This project appears to do a lot of this for you github.com/mbabineau/cloudviz – russau Jul 5 '15 at 18:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.