GithubHelp home page GithubHelp logo

ed-science / amazon-ec2-global-dashboard Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/amazon-ec2-global-dashboard

0.0 1.0 0.0 304 KB

Monitor how many EC2 instances are running across all regions with a simple dashboard.

License: Other

amazon-ec2-global-dashboard's Introduction

Amazon EC2 Global Dashboard

Monitor how many EC2 instances are running across all regions with a simple dashboard.

Details

Amazon EC2 Global Dashboard is created with a CloudFormation template. All elements of the dashboard are handled by the CloudFormation stack.

The goal of the dashboard is to give insight over all regions for how many instances are currently in a running state and monitor usage. With the overall goal of keeping costs down and helping monitor your account.

The dashboard is populated by a Lambda function counting instances in a running state in each region and pushing them to CloudWatch as custom metrics. The stack can be created in any region.

Resources created by CloudFormation:

  • AWS::CloudWatch::Dashboard
  • AWS::IAM::Role
  • AWS::Lambda::Permission
  • AWS::Lambda::Function
  • AWS::Events::Rule

Setup

  1. Save the file called 'amazon-ec2-global-dashboard.yaml' locally
  2. Go to CloudFormation in your AWS management console
  3. Select 'Create Stack' -> 'Template is ready' -> 'Upload a template file'
  4. Upload 'amazon-ec2-global-dashboard.yaml' -> 'Next'
  5. Give it a name (amazon-ec2-global-dashboard) -> 'Next'
  6. No requirements on the Configure stack options page -> 'Next'
  7. On the Review page you must accept the acknowledgment to allow the stack to create an IAM Role -> 'Create stack'

The stack will begin to create the resources. Give it about 15 minutes to gather and push the initial metrics. View your dashboard in CloudWatch management console -> Dashboards.

New Feature

Tags are an essential part of infrastructure management. You can now choose to monitor all or tagged running EC2 instances. This option is configured using Parameters when launching the Stack. If you wish to use tag-based monitoring, you can use the default (Key=tag:amazon-ec2-global-dashboard,Value=enabled) or provide your own.

Widgets

The Dashboard contains two widgets:

  • Running Instances - Dynamic widget showing the number of running instances and historical data.
  • Region mapping – Maps the region name with the region code and hyperlinks to the instances in each region.

The ‘Number’ widget type will show the current number of running EC2 instances, this is the default view: NumberType

The ‘Line’ widget type will show historical data: LineType

License Summary

This sample code is made available under the MIT-0 license. See the LICENSE file.

amazon-ec2-global-dashboard's People

Contributors

xonor avatar jamesiri avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.