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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠