Enhanced System-Level Monitoring
The CloudWatch agent is a software package that enables you to collect more system-level metrics from EC2 instances and on-premises servers. It provides enhanced monitoring capabilities beyond the default CloudWatch metrics.
Download and install using wget or curl commands from S3 bucket
Use AWS-ConfigureAWSPackage document to install on multiple instances
Include agent installation in infrastructure as code templates
The agent uses a JSON configuration file that defines what metrics and logs to collect.
Store configuration in Systems Manager Parameter Store for centralized management and easy deployment across multiple instances.
Specify log file paths, log group names, log stream names, and timestamp formats in the configuration file.
Use CloudWatchAgentServerPolicy managed policy for EC2 instances and on-premises servers.
The CloudWatch agent can be installed on on-premises servers to monitor hybrid environments.
Use Systems Manager for centralized management of on-premises servers with the agent.
Update configuration in Parameter Store and restart agent to apply changes across all instances.
Check agent logs at /opt/aws/amazon-cloudwatch-agent/logs/ for debugging issues.
Store agent configuration in Systems Manager Parameter Store for centralized management
Create CloudWatch alarms to monitor agent status and metric delivery
Attach IAM roles to EC2 instances instead of using access keys
Balance monitoring granularity with cost by adjusting metric collection intervals
CloudWatch agent is required to collect memory and disk metrics from EC2 instances - these are NOT available by default
Agent can be used on both EC2 instances and on-premises servers for hybrid monitoring
Use Systems Manager Parameter Store to centrally manage agent configurations across multiple instances