DEV Community

Vinny Akkal
Vinny Akkal

Posted on

How to proactively monitor daily lambda cost?

There was a bug in our code which lead to a large number of invocations in lambdas which costed us the next 6 months of budget. We are talking to the AWS Support to check if they can refund the same. However, how do you guys proactively monitor costs?

Top comments (4)

Collapse
 
ferricoxide profile image
Thomas H Jones II

Use the billing alerts feature of the CloudWatch Alarms subsystem.

If you get an alert saying that you've hit fifty percent of your monthly spend-target before the 15th of the month, you know that something's gone awry. =)

Collapse
 
vinnyakkal profile image
Vinny Akkal

Yes, this is a useful tool; but the Tool suggested in the next answer seems to be of more use. However, thanks for helping! :)

Collapse
 
veermanhas profile image
Veer Abheek Singh

We faced a similar issue and created a solution that we use in house. We got clients who had the same issue, so we made it part of our product.

You can use a template "daily lambda cost predictor".

Collapse
 
vinnyakkal profile image
Vinny Akkal

Thanks Veer.
This seems to solve my problem to great extent.