Lambda usage report

1

Hello. I have 12 lambda functions. This month I received an AWS Free Tier limit alert. I would like to make a report, on which lambda consumes more times per GB and/or made many requests. For example, Lambda 1 operated 5000 requests and consumed 350000 GB-second. Using the day-by-day reports I can see anomalies and made decisions to solve them.

Tell me please is it possible? How?

3개 답변
3
수락된 답변

There is a good overview of what you can do here with guidance: https://docs.aws.amazon.com/lambda/latest/dg/monitoring-insights.html

AWS
답변함 2년 전
1

There are a couple of different ways to do what you are looking for.

  • AWS Budget can be used to alert when you go over a threshold of spend OR usage. So you can set a threshold of 350,000 GB-seconds per month and it will tell you when you hit that limit. [1]

  • That won't tell you what Lambda is causing you the problem. For that, you can use CloudWatch with your Lambda Metrics to determine which Lambda is using the most resources. [2] (There is another answer here that talks about monitoring-insights)

    • CloudWatch Alarms can also be used to alert on metrics.
  • Finally, you can also use Cost Anomaly Detector [3] to set an alert when an increase (or decrease) in usage/spend is detected. The threshold for the alert is set by the user, so you can set it for $1, $10, $100, $1000, whatever you want to know about.

Since you are talking about the Free Tier, it's important to note that the first 2 AWS Budgets are free, one CloudWatch Dashboard of up to 10 metrics is free and 10 CloudWatch Alarms are free. Cost Anomaly Detector is also free, but depending on your SNS settings for notifications, there may be a fee there. Therefore, it's possible to get the notifications that you are looking for with little or no cost.

[1] https://docs.aws.amazon.com/cost-management/latest/userguide/budgets-managing-costs.html

[2] https://aws.amazon.com/cloudwatch/

[3] https://aws.amazon.com/aws-cost-management/aws-cost-anomaly-detection/

profile pictureAWS
전문가
답변함 2년 전
0

You can deploy the Cloud Intelligence Dashboards. There is a dashboard there called CUDOS that has a dedicated section for Lambda.

AWS
답변함 2년 전

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

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

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

관련 콘텐츠