Reputation: 1
Iam trying to understand cloudwatch metric for aws lambda.For troubleshooting iterator age related issue ,we may need to investigate following parameters.
Of these , memory issue can be seen from the cloudwatch insight? But how could we identify the issue is because of other parameters? Say how can I identify iterator age is increased and due to not enough shards, or due to batch size or due to invocation errors. Is there any logs to know these? Please help
Upvotes: 0
Views: 303
Reputation: 11
Each one of those options requires different metrics and logs.
Check if my lambda is failing - you can check the lambda metrics tab to see if you get errors (lambda finish without success ) in that case all the records from the shard that fail return back to the shard for retry.
A more advanced issue might be having a specific shard that causes the iterator age to grow, in this case, you might need to enable shard metric under kinesis configuration (Enhanced [shard-level] metrics) to find the specific shard that might cause the issue.
In both cases check your lambda logs and metric under CloudWatch to understand if you have errors or timeouts.
As a disclaimer, I work for Lumigo that provides monitoring and debugging solutions for serverless applications. So we can easily address your lambda issues, we will give you full visibility on invocations errors and memory issues, no more searching in logs :-)
Upvotes: 1