Monitor memory and disk metrics for Amazon EC2 Linux instances. You can use Amazon CloudWatch to collect metrics and logs from the operating systems for your EC2 instances. Important. The CloudWatch monitoring scripts are deprecated. We recommend that you use the CloudWatch agent to collect metrics and logs. …
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/mon-scripts.html

