What does this AWS Solution do?
This solution automates the process of setting up Amazon CloudWatch dashboards for your Apache, NGINX, and Puma workloads running on Amazon EC2. This solution uses several features of Amazon CloudWatch and speeds up the getting started experience.
Using the solution, you can reduce the time it takes to get started with monitoring key performance metrics and logs for your web servers running on AWS. This solution provides a pre-configured dashboard so you can analyze web traffic patterns, determine whether to scale servers up or out, and detect bottlenecks and other performance problems for the workloads.
This solution provides a preconfigured Amazon CloudWatch dashboard for your Apache, NGINX, and Puma workloads.
This solution uses a tagging mechanism so that you can add or remove instances from your dashboard.
Use Amazon CloudWatch agent configuration files to configure your EC2 instances running
Apache, NGINX, and Puma workloads.
AWS Solution overview
The diagram below presents the architecture you can automatically deploy using the solution's implementation guide and accompanying AWS CloudFormation template.
CloudWatch Monitoring on AWS Solution architecture
The architecture can be broken down into two workflows: User Interaction and Dashboard Management.
User Interaction Workflow:
1. Users update the tag on their instances with the tagging schema provided as input during the stack deployment.
2. The CloudWatch Events rule invokes the tagHandler 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 AWS Systems Manager Parameter Store instance list and updates the parameter as needed.
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.
3. When the AWS Systems Manager Parameter Store gets updated, the event is captured using CloudWatch Events rule to invoke the dashboardHandler Lambda function.
4. The dashboardHandler Lambda function updates the deployed dashboard
widgets with logs and metrics for the updated instance list.
Browse our library of AWS Solutions Implementations to get answers to common architectural problems.
Find AWS certified consulting and technology partners to help you get started.
Browse our portfolio of Consulting Offers to get AWS-vetted help with solution deployment.