You can verify the policy using Show Policy Actions in IAM console for the user. Now the user would have policy attached to send custom metrics using API to CloudWatch Give a name for Policy and paste policy in Policy Document and click on Apply Policy In next page select custom Policy and click select Go to IAM Users, click on the user just created and click on “ click here” hyperlink in Inline Policies We do not need password or console access to this user.Ĭopy and keep the Access key handy as we would need this every time we configure custom metrics to be sent to CloudWatchĬreate and Attach an Inline Policy to the user with below actions. List of all commands run on Linux are also available at the end of the post for easyĬreate an IAM user with access key. Updated (27-March-2016) – Added Commands for Ubuntu Linux In this post we will see the process of installing and configuring CloudWatch Custom Metrics for Redhat derived Linux Distros, mainly RHEL, Amazon Linux and CentOS along with Windows to monitor Memory Utilization of the EC2 instance Even the process of installing pre-requisites on different Linux distributions is slightly different. The process of sending these custom metrics are different for Linux and Windows Instances. Since AWS does not have access to EC2 instance at the Operating System level, only CPU, Network utilization, IO and other metrics that can be monitored through Hypervisor layer are available by default in AWS Console.ĪWS provides a set of scripts that utilize CloudWatch API to send Memory Utilization info and make use of CloudWatch features to monitor and take action if alarms are raised. One main metric that is missing from default CloudWatch metrics is Memory utilization of EC2 instances. These metrics can be used to trigger an alarm, send notifications, even trigger actions based on these alarms. CloudWatch an AWS service provides rich set of tools to monitor health and resource utilization of various services on AWS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |