How can I optimize costs associated with publishing Lambda custom metrics to CloudWatch?


I'm concerned about the costs associated with publishing custom metrics to Amazon CloudWatch. I want to create a report out of these metrics. Is there an alternative option that I can explore? I suppose there is an option to send AWS Lambda logs to CloudWatch and use the Lambda Insights, or create a report from the Amazon S3 bucket. I'm not sure if it's a best practice.

1 Answer
Accepted Answer

You can use the [CloudWatch embedded metric format][1]. The embedded metric format sends the metrics to CloudWatch Logs through log messages. These messages are automatically pushed to CloudWatch metrics.

[1]: (

You can also consider using the AWS Lambda Power Tools for Python or Java.

profile picture
answered 2 years ago

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