Solution components - Amazon CloudWatch Monitoring Framework

Solution components

The solution does not configure your Apache EC2 instances. You need to verify that your EC2 instance is sending workload related metrics and logs in the appropriate format to Amazon CloudWatch. Failing to do so can result in missing values from the dashboard. For more information, refer to Configuring your Apache EC2 instance.

Amazon CloudWatch agent configuration

The solution uses multiple CloudWatch agent configuration files to gather workload metrics and logs. For more information, refer to Multiple CloudWatch Agent Configuration Files in the Amazon CloudWatch user guide. The following reference CloudWatch agent configuration files provide more information about collecting metrics and logs for your Apache EC2 instances.

  • Base infrastructure config file: CloudWatch agent configuration for collecting infrastructure related metrics and logs. For more information, refer to the file in the GitHub repository.

  • Apache config file: CloudWatch agent configuration for collecting apache host and system related metrics and logs. For more information, refer to the file in the GitHub repository.

For complete list for monitored key performance indicators, refer to Apache key performance indicators.

Httpd configuration

The solution provides the httpd.conf file to reference when configuring your apache web server. This file provides information on how to collect Apache error and access logs using the appropriate format. You must verify that your web server log files are pushed to Amazon CloudWatch using the appropriate format. For more information, refer to the file in the GitHub repository.

Amazon CloudWatch dashboard

The solution deploys an opinionated dashboard to monitor your Apache workload running on Amazon EC2 instances. The dashboard is a collection of logs, metrics and widgets to monitor some common Apache performance indicators. For more information about metrics and logs being monitored, refer to the Apache key performance indicators.

You can customize the dashboard. For more information on how to customize metrics for your workload, refer to the Custom-Metrics section in the README.md file.