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 Answers
3
Accepted Answer

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
answered 2 years ago
  • Thank You. I use Lambda Insights.

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
EXPERT
answered 2 years ago
0

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

AWS
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