ExitAmazon EC2: guest monitoring with the CloudWatch agent1 / 9
Explanation

Collect what EC2 cannot see from outside

How to install, authorize, configure, and troubleshoot the CloudWatch agent on EC2 instances to collect guest operating system metrics and logs. · associate

EC2 publishes metrics such as CPU utilization and network traffic without a guest agent. To collect memory utilization, filesystem space used, and operating system or application logs, install and configure the CloudWatch agent inside the instance. Enabling EC2 detailed monitoring does not add these guest measurements.

The agent reads the sources selected in its configuration and sends metrics and logs to separate CloudWatch destinations. This diagram uses Systems Manager Parameter Store to hold a reusable configuration; a local JSON file is also supported. The arrows show configuration and telemetry flowing, not who initiates an API request.

Agent configurationGuest metricsLog events
AWS Systems ManagerParameter Store: agent JSON
Amazon EC2Guest OS: CloudWatch agent
Amazon CloudWatchCloudWatch metrics
Amazon CloudWatchCloudWatch Logs

1 / 5 Parameter Store holds the agent's JSON configuration, including which metrics and logs to collect.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.