Code Monkey home page Code Monkey logo

terraform-aws-cloudwatch-dashboard's Introduction

cloudwatch-dashboard

Terraform actions status

Provides a CloudWatch dashboard to allow monitoring AWS resources. The resources supported consist of:

  • Elastic Container Service (ECS) containers.
  • Relational Database Service (RDS) instances.

The CloudWatch dashboard widgets for ECS containers consists of two widgets forming a single row:

  1. Average CPU utilization (as a percentage) for the specified containers.
  2. Average memory utilization (as a percentage) for the specified containers.

The CloudWatch dashboard widgets for RDS instances also consists of two widgets forming a single row:

  1. Average read and write IOPS for the specified RDS instance.
  2. Free storage space for the specified RDS instance.

The X axis range for the CloudWatch dashboard widgets is six hours.

The CloudWatch console allows a user to inspect a widget by enlarging the widget, adjusting ranges and metrics, etc. See Using Amazon CloudWatch Dashboards for details.

Example Usage

module "dashboard" {
  source = "[email protected]:techservicesillinois/terraform-aws-cloudwatch-dashboard"

  dashboard_name = "JRR dashboard"
  
  ecs_cluster = "jrr"
  
  ecs_containers = [
    "jrr-service1",
    "jrr-service2",
    "jrr-service3"
  ]

  rds_free_storage_max = 100 * 1000 * 1000 * 1000   # 100 gb
  rds_iops_max         = 200

  rds_instance = "jrr-db"
}

Argument Reference

The following arguments are supported:

  • dashboard_name - (Required) Dashboard name.

  • ecs_cluster - (Required) Name of ECS cluster holding the service containers to be monitored.

  • ecs_containers - (Optional) List of ECS containers to be displayed on dashboard.

  • period – (Optional) Period plotted by dashboard widgets. The default is 300 (a five-minute period

  • rds_free_storage_max – (Optional) Maximum free storage value plotted on Y axis. By default, CloudWatch chooses the maximum Y value based on the data values in the period.

  • rds_iops_max – (Optional) Maximum IOPS value plotted on Y axis. By default, CloudWatch chooses the maximum Y value based on the data values in the period.

  • rds_instance – (Optional) RDS instance to be displayed on dashboard. NOTE: Currently, this module supports only one RDS instance per dashboard.

Attributes Reference

The following attributes are exported:

  • dashboard_arn – ARN of dashboard provided by this module.

terraform-aws-cloudwatch-dashboard's People

Contributors

alanb-uofi avatar jonroma 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.