Monitor a Lambda Application Using CloudWatch on AWS
In this lab, you will configure your Lambda application to send logs to CloudWatch. You will learn how to view CloudWatch metrics and how to query CloudWatch logs. You will also learn how to set alarms to get notified when your application performance falls below the desired threshold.
Terms and conditions apply.
Lab info
Lab author
Challenge
Configure Logging for AWS API Gateway
Configure API Gateway endpoints to send logs to CloudWatch to monitor user requests and API load and performance.
Challenge
Generate User Requests with the Client Simulator Tool
Simulate actual user requests against your Lambda application to be used for generating log data for you to analyze view CloudWatch.
Challenge
Analyze Application Performance Using CloudWatch Metrics
Analyze metrics generated by API Gateway to measure the application performance.
Challenge
Troubleshoot Failed API Gateway Requests Using CloudWatch Logs
Query logs generated by API Gateway to analyze and find user requests that have failed and the reason.
Challenge
Set Up Alarms to Get Notified On Application Performance
Create an alarm for your serverless application to monitor the number of failed requests and get notified when the number reaches a specified threshold.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.
Recommended prerequisites
- AWS API Gateway
- AWS CloudWatch
- AWS IAM