Custom Metrics for AWS Lambda Inconsistent behavior

0

Hello Everyone,

I have a snap start enabled lambda (Springboot Application) which publishes Custom metrics to AWS Cloudwatch. I am able to see that the metrics are flushed from lambda which gives the namespace, metrics, Unit etc.. But in Cloudwatch there is a inconsistent behavior, what we have observed is the metrics is populating only if there are multiple invocations of the lambda and the metrics are flushed in the same log group, it would consider it as one data point.

for example: LogStreamId - ABC -> Processed 1 event -> No Metrics LogStreamId - XYZ-> Processed 4 event -> 3 Metrics (Total event processed in the logstream - 1)

The above pattern is consistent across all the environments.

profile picture
AGS
asked 6 months ago49 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions