![]() Step 14) Now before we push these script to Ec2, lets go back to AWS console and look at Cloudwatch and we will see there is no Metric for Memory, but after we push above perl scripts we will see the Memory Utilization metrics Then type ls and you see some perl script ( in green color) Rm –rf CloudWatchMonitoringScripts-1.2.2.zip Now I will remove the Zip file that we downloaded Step 12) If you type ls we will see it did create a directory called aws-scripts-mon Step 10) now we will paste the curl commands from Amazon Websites Step 9) Now I will make a directory that we will install all of our stuff ![]() Sudo yum install -y perl-Switch perl-DateTime perl-Sys-Syslog perl-LWP-Protocol-https perl-Digest-SHA.x86_64 Step 8) Now we will install the Perl Script : ( install perl Syslogs and Protocols) Step 7) if you login into Linux, type these Step 6) Now I will go to AWS and start new EC2 instance ( Linux) Step 5) Before we do our lab, let’s go to google and type Monitoring Memory and Disk Metrics for EC2 Linux instanceĪfter we login into EC2 Linux, we will go to aparticular directory and run this Command Step 4) Now we will go and create an EC2 instance, then attached above Role to it then we will use some Perl Script so that we get customize Memory Utilization Step 3) Pick CoudWatchFullAccess as a Policy Step 2) Go to IAM, and create a new Role called EC2CloudWatch ![]() Step 1) We need to create a CloudWatch Role for EC2 so the EC2 can send some information to CloudWatch We will do a lab and we will create a new EC2 and then we do customize Cloudwatch metric for Memory. Let’s go to google and search for Amazon EC2 Metrics and Dimensions By Default Ec2 monitors is for 5 mins interval, unless you enable detailed monitoring which will then make it 1 min intervals ( it will cost more) Please note that RAM Utilization is a customer metric. You can monitor your EC2 using CloudWatch using: Amazon AWS – CloudWatch Custom Metrics, Monitoring
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |