Reduce the time it takes to set up application monitoring for your workloads
Important: The Application Monitoring with Amazon CloudWatch solution will retire in December 2024. We encourage customers to explore using Amazon CloudWatch to set up observability for Apache, NGINX, and PUMA workloads running on Amazon Elastic Cloud Compute (Amazon EC2). You can also find other solutions related to the use case in the AWS Solutions Library.
Overview
Application Monitoring with Amazon CloudWatch automates the process of setting up Amazon CloudWatch dashboards for your Apache, NGINX, and Puma workloads running on Amazon Elastic Compute Cloud (Amazon EC2). This AWS solution uses several features of Amazon CloudWatch and speeds up the process of getting started.
Benefits
Provide a preconfigured Amazon CloudWatch dashboard for your Apache, NGINX, and Puma workloads.
Add or remove instances from your dashboard using this solution’s tagging mechanism.
Use Amazon CloudWatch agent configuration files to configure your EC2 instances running
Apache, NGINX, and Puma workloads.
Technical details
You can automatically deploy this architecture using the implementation guide.
The architecture can be broken down into two workflows: User Interaction and Dashboard Management.
User Interaction Workflow
The AWS CloudFormation template deploys the Amazon CloudWatch Events rule, AWS Lambda function, and the Parameter Store (a capability of AWS Systems Manager) necessary to capture the workload instances in your account.
Dashboard Management Workflow
The AWS CloudFormation template deploys the Amazon CloudWatch Events rule and AWS Lambda function necessary to configure workload specific Amazon CloudWatch dashboard in your account.
Step 1 (User Interaction Workflow)
Users update the tag on their instances with the tagging schema provided as input during the stack deployment.
Step 2 (User Interaction Workflow)
The Amazon CloudWatch Events rule invokes the tagHandler AWS Lambda function on cron schedule. The Lambda function primarily performs two tasks:
- It uses the ec2 describe-tags API call to get instances with the desired tag value (same as Step 1).
- It compares the fetched instance list with the Parameter Store instance list and updates the parameter as needed.
Step 3 (Dashboard Management Workflow)
When the Systems Manager Parameter Store gets updated, the event is captured using the CloudWatch Events rule to invoke the dashboardHandler Lambda function.
Step 4 (Dashboard Management Workflow)
The dashboardHandler Lambda function updates the deployed dashboard widgets with logs and metrics for the updated instance list.
- Publish Date