CloudWatch Lambda Insights
CloudWatch Lambda Insights is a powerful extension for understanding the performance of Lambda functions. It provides valuable insights into a range of issues that can affect the performance of Lambda such as memory leaks, identifying high-cost functions, identifying performance impact caused by new versions of Lambda functions, and also understanding latency drivers in the Lambda functions.
The traditional method of gathering process-level metrics and logs in an EC2 environment involves using the CloudWatch agent. In the container setup, we use either a sidecar or a daemon where the compute power is continuously available. However, in the case of Lambda functions, this method may not be optimal. Using the same type of model for Lambda, which is a short-lived compute that is billed for the time it is running, can result in increased costs. This is because the agent would need to run continuously in the background, even between invocations, resulting in...