From the course: Monitoring AWS with CloudWatch (2020)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution: Push custom metrics to CloudWatch

Solution: Push custom metrics to CloudWatch - Amazon Web Services (AWS) Tutorial

From the course: Monitoring AWS with CloudWatch (2020)

Start my 1-month free trial

Solution: Push custom metrics to CloudWatch

(upbeat music) - [Instructor] To solve this challenge, first, I created my access keys so I could connect AWS CLI to my account. Next, I configured my AWS account, using the AWS configure command. Where I specified the access key ID. Next, I specify the secret access key and then specify the region. Now that the AWS CLI was connected to my AWS account, I ran the following command; Using the AWS CloudWatch put metric data, I constructed my command as following: First, I specified the metric name, which was CPU usage. Next I specified the namespace, which was metrics challenge. Then, specify the unit as percentage, after which I specified a dummy value of 60%. And finally, I specify the dimensions, which was machine name, challenge machine, and then a random machine IP. And in order to make my metric higher resolution, I specify the storage resolution as one, and finally executed the command a couple of times. Next,…

Contents