Logging, monitoring, alerting, etc.
Warning: This section is under construction
🤨 AWS docs use
sql syntax highlighting for CloudWatch query syntax... but why?!
Log Groups & Log Streams
Each Lambda function will have a Log Group
If you have a Lambda function named
my-function, the log group will look like
/aws/lambda/my-function. If the lambda is deployed to
Lambda@Edge, the log group
will look like
Each log group will have multiple log streams.
p99is your 99th percentile or top 1% of your user group or data pool.
The following CloudWatch query can be visualized as a line, and will depict function
duration (or latency) as the
p99/95/67/50 for every 10 minutes.
p50is your average case; 50% of function invocations
p99is your worst case; 1% of function invocations
Note: See Queries for Lambda logs
Creating a Dashboard with CDK
<VERSION>is the version of the Lambda function. This could numeric values like