![]() ![]() InstanceId - All your EC2 memory metrics will be available inside this option.Filesystem, InstanceId, MountPath - All your EC2 disk metrics will be available inside this option.A new Custom Namespaces will be added in your metrics view once Cloudwatch starts receiving metrics from the scripts.Ĭlick on it, and you will get 2 options as depicted in the image below: In your AWS console, go to Cloudwatch service.Īll your metrics are available in Metrics menu. As we are using Amazon Linux 2 AMI, steps will look similar to this:Įnter fullscreen mode Exit fullscreen mode I generally prefer to keep everything in a separate folder for clarity, though not mandatory. SSH to your EC2 instance and perform the following steps: Also, store the generated AWSAccessKeyId and AWSSecretKey of this user which will be required at a later stage. After that, create a user (cloudwatch-stats-user) and attach the created policy(cloudwatch-ec2-access) to the user. Got confused? Just create a policy (say - cloudwatch-ec2-access) with the above permissions. In order to pass metrics data from EC2 to AWS Cloudwatch, we will have to create a user with the following IAM role access: ![]() For other operating systems, you can use respective commands to achieve the results.Ĭreating an IAM role to access the metrics ✋ For simplicity, let's assume that we are using EC2 with Amazon Linux operating system. For more information, see the Amazon CloudWatch pricing page. In this post we'll look at how we can use CloudWatch to monitor these extended metrics, allowing you to build reports, dashboards, and alerts.īefore we begin, note that standard Amazon CloudWatch usage charges will be applicable for these scripts. Amazon Web Services(AWS) reports some good metrics on the console by default, like CPU, but some key metrics like memory usage or disk space are missing these are important to monitor to ensure instance up-time and health. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |