aws-cloudwatch-dashboard-generator
Generate Amazon CloudWatch dashboards for 13+ AWS services from metric templates curated by AWS Support engineers.
This tool generates a CloudWatch Dashboard from a list of AWS resources you provide. Each supported service gets a predefined set of CloudWatch metrics, statistics and periods selected by AWS Support engineers from troubleshooting experience, so the dashboard shows the signals that matter for that service without you having to pick them one by one. It works for any monitoring purpose: product launches, migrations, peak traffic, or routine operations.
Summary extracted from the README.
AWS CloudWatch Dashboard Generator
Project direction (November 2026). This project is being revived with an AI-agent-first design. Version 2.0 will add an agent skill and an MCP server so that your coding agent (Kiro, Claude Code, Cursor, Codex, ...) can generate these dashboards for you, with the curated templates as the knowledge and a deterministic renderer producing exact dashboard JSON. The CLI described below keeps working and stays available as a fallback, in maintenance mode. See ROADMAP.md.
This tool generates a CloudWatch Dashboard from a list of AWS resources you provide. Each supported service gets a predefined set of CloudWatch metrics, statistics and periods selected by AWS Support engineers from troubleshooting experience, so the dashboard shows the signals that matter for that service without you having to pick them one by one. It works for any monitoring purpose: product launches, migrations, peak traffic, or routine operations.
Currently Supported AWS Resource Types
| Resource Types | Supported? |
|---|---|
| Application Load Balancer | ✅ |
| Classic Load Balancer | ✅ |
| CloudFront | ✅ |
| EC2 | ✅ |
| ElastiCache | ✅ |
| Network Load Balancer | ✅ |
| RDS | ✅ |
| NAT Gateway | ✅ |
| Aurora | ✅ |
| AmazonMQ(RabbitMQ) | ✅ |
| Amazon MSK | ✅ |
| S3 | ✅ |
| ECS | ✅ |
Want another service? Open an issue or a pull request that adds a template under templates/. See CONTRIBUTING.
Installation
Prerequisites
- Python 3.9 or newer (tested on 3.9 through 3.13).
- pip.
1. PIP installation and common issues
First install pip is the package installer for Python
$ python -m ensurepip --upgrade --user
If you have any issue to install pip, try using get-pip.py to install
- Download the script, from https://bootstrap.pypa.io/get-pip.py.
- Run
python get-pip.py
Troubleshooting
If you run pip install but got error command not found: pip
It might indicated that your pip install path in not in env PATH, please reference WARNING message while install pip to find install path or try
/Users/${USER}/Library/Python/3.9/bin/pip install -r requirements.txt
Find more information at pip installation document: https://pip.pypa.io/en/stable/installation/
2. Install Dependencies
The tool depends only on click and PyYAML. A virtual environment is recommended but not required.
pip install -r requirements.txt
Then execute this tool.
$ python iemcwd.py -h
Usage: iemcwd.py [OPTIONS]
Generates an Amazon CloudWatch dashboard from a list of AWS resources you
provide. Each supported service gets a predefined set of metrics curated by
AWS Support engineers. Supply the resources as a CSV or YAML file; the
output is dashboard JSON ready for `aws cloudwatch put-dashboard`.
The CLI is in maintenance mode: version 2.0 will add an agent skill and an
MCP server so that your AI coding agent can generate these dashboards for
you.
Options:
-f, --input_file FILENAME Input resource .csv file [required]
-o, --output-file FILENAME Output Amazon CloudWatch dashboard JSON file
[required]
-h, --help Show this message and exit.
Usage
The tool is quite simple. It reads a CSV file to get your resource IDs, then output the dashboard JSON to the directory you specified.
Using CSV file as an input
There is an example CSV file at inputs/csv/example.csv under this package for your reference. The table in CSV file must follow the format as below:
| service | region_code | dim1_name | dim1_value | dim2_name | dim2_value |
|---|---|---|---|---|---|
| CloudWatch Namespace | region code | DimensionName1 | DimensionValue1 | DimensionName2 | DimensionValue2 |
For the explanation of these attributes, see below for more.
You may create a CSV file matching the columns and format above, or fill in inputs/csv/fill-in.csv with the resources you want to monitor on the dashboard. The order of entries(rows) in this table does not matter. Blank lines are ignored; rows with an unknown region or without a dimension are skipped with a warning. The below is an example for the CSV input file, or refer to inputs/csv/example.csv in this repository. Though most of the service only requires one metric (dim1_name and dim1_value columns), please note that some services, including Elasticache, contain a second dimension entry dim2_name and dim2_value.
| service | region_code | dim1_name | dim1_value | dim2_name | dim2_value |
|---|---|---|---|---|---|
| ALB | ap-northeast-1 | LoadBalancer | app/my-alb1/1234567890123456 | ||
| NLB | ap-northeast-1 | LoadBalancer | net/my-nlb1/1234567890123456 | ||
| NAT | ap-northeast-1 | NatGatewayId | nat-0abcdef1234567890 | ||
| CloudFront | us-east-1 | DistributionId | EDFDVBD6EXAMPLE | ||
| EC2 | ap-northeast-1 | InstanceId | i-0abcdef1234567890 | ||
| RDS | ap-northeast-1 | DBInstanceIdentifier | support-instance-1 | ||
| AuroraCluster | ap-northeast-1 | DBClusterIdentifier | cluster-001 | ||
| AuroraInstance | ap-northeast-1 | DBInstanceIdentifier | instance-001 | ||
| ElastiCache | ap-northeast-1 | CacheClusterId | support-001 | CacheNodeId | 0001 |
| AmazonMQ | ap-northeast-1 | Broker | broker-001 | ||
| AmazonMSK | ap-northeast-1 | Cluster Name | mskcluster-001 | ||
| S3 | ap-northeast-1 | BucketName | examplebucket | ||
| ECS | ap-northeast-1 | ClusterName | cluster-001 | ServiceName | service-001 |
Example:
python iemcwd.py -f inputs/csv/example.csv -o outputs/example_output.json
Successfully generated CloudWatch dashBoard JSON file.
After generating the dashboard JSON file, use the following AWS CLI command to create a CloudWatch based on this JSON file:
$ aws cloudwatch put-dashboard --dashboard-name my-dashboard --dashboard-body file://outputs/example_output.json
You may also follow the below documentation to create the CloudWatch dashboard using AWS Console using the generated JSON:
Attribute explanation:
service should be one of the following:
ALBNLBNAT--> i.e. NAT gateway in VPCCloudFrontEC2RDSAuroraClusterAuroraInstanceElastiCacheAmazonMQAmazonMSKS3ECS
region_code is the AWS region where your resource is located at. See definitions/Regions.json for a list of region code.
dim1_name and dim1_value is the dimension of a metric in Cloud Watch. A dimension is a name/value pair that is part of the identity of a metric.Take EC2 for example, the dim1_name is InstanceId, and dim1_value will be the instance ID. Some metrics may contain multiple dimensions, such as ElastiCache. Understanding each AWS service resource Dimension here:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html
Running the tests
From the repository root:
python -m unittest
The tests compare each template's rendered widgets against a recorded golden output in test/testing_output.py. When you change a template on purpose, update the golden output in the same pull request.
Security
See CONTRIBUTING for more information.
License
This library is licensed under the MIT-0 License. See the LICENSE file.