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

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

From the course: Monitoring AWS with CloudWatch (2020)

Start my 1-month free trial

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…

Contents