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: Create custom CloudWatch metrics - Amazon Web Services (AWS) Tutorial
From the course: Monitoring AWS with CloudWatch (2020)
Solution: Create custom CloudWatch metrics
(upbeat music) - [Instructor] To solve this challenge on a CloudWatch home page, me navigated to the Log groups, and found the API Gateway Execution Logs. Next I navigated to the Metric filters, and proceeded to create a new metric filter. For the filter pattern I used JSON, and added the following pattern. $.statusCode=200. Next I move on to the next page, to configure the metric details. For the filter name, I name it MetricFilterChallenge. Next in the namespace, I also named it MetricFilterChallenge. Next I named the metric SuccededRequests. For the metric value I specified 1, and for the default value 0. And finally create the metric filter. After having created the metric filter, I started the API test with tools, so I can generate some new logs. Next I navigated back to the CloudWatch Console. To view my metric, I had to navigate to the Metrics tab, on the left side navigation bar, from which I…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
(Locked)
Logs on CloudWatch5m 23s
-
Query logs for insights4m 37s
-
(Locked)
Create log metrics5m 14s
-
Using the CloudWatch agent1m
-
(Locked)
Setting up the CloudWatch agent on Windows7m 31s
-
(Locked)
Setting up the CloudWatch agent on Linux5m 58s
-
(Locked)
Challenge: Create custom CloudWatch metrics20s
-
(Locked)
Solution: Create custom CloudWatch metrics1m 43s
-
(Locked)
-
-
-
-
-