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

0

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 個回答
0
已接受的答案

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]: (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Specification.html

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

profile pictureAWS
專家
Uri
已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南