Git Product home page Git Product logo

aws-monitoring-framework's Introduction

AWS Automated Montoring Setup Framework

This Frameworks allows you to setup alert automatically on the basis of the event received on the even bus of eventbridge. We are using default event bus of eventbridge to achieve this.

Architecture

Refer to Monitoring-framework.drawio.png

Regions

Mumbai (Primary)
North Virginia 

Alerts

EC2:
    CPU 
    Memory

Alert Management States

EC2:
    Running (Setup the Alert)
    stopped (Disable the Alert)
    terminated (Deletes The Alert)

Setting a New Region/Setting up a New Team

If you are setting up a new team or setting up resources for the team in different region, make sure to first create the SNS topic with the same name as team in sns.tf.

resource "aws_sns_topic" "TEAM_REGION_ALIAS " {
  name = "TEAM"
  provider = aws.REGION_ALIAS 
}

resource "aws_sns_topic_subscription" "TEAM_REGION_ALIAS " {
  topic_arn = aws_sns_topic.TEAM_REGION_ALIAS .arn
  protocol  = "email"
  endpoint  = var.email_address

  depends_on = [ aws_sns_topic.TEAM_REGION_ALIAS  ]
  provider = aws.REGION_ALIAS  
}

Note: TEAM must match the team tag on the resource

How to send alert of a new resource to particular Team

Whenever setting a new resource e.g. in this case EC2, must add the tag "team" in the resource to route the alerts to that particular team name. SNS topic must be created beforehand for the team in the same region.

Define custom threshold

Whenever setting a new resource , below tags are supported to add custom threshold value
EC2:
    team
    cpu_threshold (0-100) (Default: 80)
    memory_threshold (0-100) (Default: 80)

how to use

# create profile in ~/.aws/credentials named nn
terraform init
terraform plan
terraform apply

aws-monitoring-framework's People

Contributors

bazingarj avatar

Watchers

 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.