Monitoring Memory and Disk Metrics for Amazon EC2 Linux Instances
From DevOps Notebook
Required packages
Amazon Linux
- login with ec2-user
$ sudo yum install -y perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https perl-Digest-SHA.x86_64
Ubuntu
- login with ubuntu user
$ sudo apt-get update && \ sudo apt-get install libwww-perl libdatetime-perl unzip
Install Monitoring Scripts
$ cd /opt/ && curl https://aws-cloudwatch.s3.amazonaws.com/downloads/CloudWatchMonitoringScripts-1.2.2.zip -O $ unzip CloudWatchMonitoringScripts-1.2.2.zip && \ rm CloudWatchMonitoringScripts-1.2.2.zip && \ cd aws-scripts-mon