Which action will ensure that the CloudWatch alarms function correctly?
Install and configure the CloudWatch agent on the EC2 instance to capture the desired metrics.
Install and configure AWS Systems Manager Agent on the EC2 instance to capture the desired metrics.
Reconfigure the CloudWatch alarms to use the VolumeReadBytes metric and the VolumeWriteBytes metric for the EBS volumes.
Reconfigure the CloudWatch alarms to use the VolumeReadBytes metric and the VolumeWriteBytes metric for the EC2 instance.
Explanations:
The CloudWatch agent is used to monitor additional metrics on the instance, but the DiskReadBytes and DiskWriteBytes metrics are already provided by CloudWatch for EBS volumes. Installing the CloudWatch agent is not necessary.
The AWS Systems Manager Agent (SSM Agent) does not capture EBS volume-specific metrics like DiskReadBytes and DiskWriteBytes. It is used for managing EC2 instances and running automation tasks, not for capturing EBS metrics.
The correct metrics for EBS volumes are VolumeReadBytes and VolumeWriteBytes. The current alarms are using the wrong metrics (DiskReadBytes and DiskWriteBytes, which are for instance-level metrics). Reconfiguring the alarms to use the EBS-specific metrics will resolve the issue.
The VolumeReadBytes and VolumeWriteBytes metrics are associated with the EBS volumes, not the EC2 instance itself. Configuring alarms for the EC2 instance will not track the desired EBS volume metrics.