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 Risposte
3
Risposta accettata

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
con risposta 2 anni fa
  • 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
ESPERTO
con risposta 2 anni fa
0

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

AWS
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande