Lambda function metrics - AWS Compute Optimizer
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

Lambda function metrics

Compute Optimizer analyzes the following CloudWatch metrics of your Lambda functions. It uses these metrics to make its Lambda function recommendations.

Metrics analyzed for Lambda functions
Metric Description
Invocations

The number of times Lambda runs your function code. This includes runs that succeed and runs that end in a function error.

Duration

The amount of time that your function code spends processing an event.

Errors

The number of invocations that end in a function error, such as an error from your code or from the Lambda runtime.

Throttles

The number of invocation requests that are throttled.

For more information about these metrics, see Using Amazon CloudWatch metrics with Lambda in the AWS Lambda Developer Guide.