Hey folks! My company relies on a variety of AWS services, and I'm trying to figure out a way to monitor when we're approaching our limits. Manually building functions for each service isn't feasible, and I can't just monitor our current services since developers often introduce new ones. It would be great to find a dynamic solution. I want to emphasize that this is not just about cost—there are hard limits, like 10 API calls per second, and soft limits that can often be increased. How can I keep track of these limits and get alerts when we're close?
4 Answers
You can set up billing alerts, but for something more tailored to service limits, you might want to look into AWS CloudWatch. You can define rules using metrics, and set it up to notify you via an SNS subscription when certain thresholds are triggered.
It really depends on how critical this is for your setup. Most AWS limits are pretty reasonable. Tracking API call rates or other limits can be tricky unless you have some good logging in place. Just watch out for when you're pushing the boundaries, or you might end up with an outage!
AWS Service Quotas with CloudWatch Alarms is the way to go! It allows you to monitor limits without hardcoding logic for every service, making it scalable and efficient.
There's a specific AWS solution called the Quota Monitor, which can help you keep track of usage limits across services dynamically. You can check it out in their documentation for more details!
Yeah, some of those limits can catch you off guard! I've had a similar issue where hitting the hard limit for concurrent Lambda calls put us in a tough spot. We had to disable a bunch of Lambdas just to stay afloat.