I'm running a serverless architecture with Lambda and API Gateway, along with SNS and SQS. I'm on the lookout for affordable solutions that can help me track traces and response times for my API endpoints. Since I have a ton of APIs, I'd love to find a way to centralize all these metrics. Any recommendations?
5 Answers
Check out Lambda Power Tools! They have some great documentation on how to implement it. Here's the link for more details: https://docs.powertools.aws.dev/lambda/python/latest/#install
Just a thought—do you really need all that? We turned off X-Ray on a big part of our setup because the AWS embedded metrics and CloudWatch logs do the job for us. Sometimes less is more!
I’d suggest giving Sentry a shot; I’m using it in production and it works really well for tracking errors and performance!
Have you looked into X-Ray? It's the built-in solution from AWS, but I get it, it can be pricey. Another option is using OTEL with a setup that includes Prometheus and Grafana. Just a heads-up, you'll need to maintain that yourself, like running it on an EC2 instance since AWS's managed Grafana is super expensive!
Remember that all serverless services come with built-in CloudWatch metrics. Don't overlook those!
Totally! I tried activating X-Ray for a few lambdas and my bill shot up fast! I'll definitely explore OTEL, thanks for the tip!