监视AWS Lambda客户使用率的最佳方法 [英] Best Way to Monitor Customer Usage of AWS Lambda

查看:99
本文介绍了监视AWS Lambda客户使用率的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我新创建了一个API服务,该服务将作为试验部署到客户.它是使用AWS API Gateway,AWS Lambda和AWS S3构建的.使用SaaS定价模型,对我来说,监视此客户的使用情况和成本的最佳方法是什么?目前,我已经针对该客户制作了独特的API网关,Lambda函数和S3存储桶.有什么好方法可以创建一个仪表板,使我(也许是客户)可以详细了解此监控?

I have newly created an API service that is going to be deployed as a pilot to a customer. It has been built with AWS API Gateway, AWS Lambda, and AWS S3. With a SaaS pricing model, what's the best way for me to monitor this customer's usage and cost? At the moment, I have made a unique API Gateway, Lambda function, and S3 bucket specific to this customer. Is there a good way to create a dashboard that allows me (and perhaps the customer) to detail this monitoring?

另一个问题,当扩展到多个不同的客户时,简化此过程的最佳方法是什么?每个客户都有一个唯一的API令牌-比天真的为每个客户提供独特的AWS资源更好的方法是什么?

Additional question, what's the best way to streamline this process when expanding to multiple different customers? Each customer would have a unique API token — what's the better approach than the naive way of making unique AWS resources per customer?

我是新来的(一名大学生),但是任何见解/资源都会对我有很大帮助.谢谢.

I am new (a college student), but any insights/resources would help me a long way. Thanks.

推荐答案

完全公开:我为Lumigo工作,该公司正是这样做的.

Full disclosure: I work for Lumigo, a company that does exactly that.

关于您的问题,正如@ gusto2所说,您可以使用许多工具,最好的工具取决于您的特定要求.

Regarding your question, As @gusto2 said, there are many tools that you can use, and the best tool depends on your specific requirements.

这些工具之间的主要区别在于您需要应用的配置级别.

The main difference between the tools is the level of configuration that you need to apply.

cloudwatch自定义指标-规模的另一面-获得更精确的指标,使您可以上传任何指标数据并对其进行监控: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html 如果您确切地知道要监视的内容,并且已经熟悉了体系结构的局限性和难点,那么这是一个很好的工具.而且,当然,您可以为该数据配置警报:

cloudwatch custom metrics - The other side of the scale - getting much more precise metrics, which allows you to upload any metric data and monitor it: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html This is a great tool if you know exactly what you want to monitor, and you already familiar with your architecture limitations and pain points. And, of course, you can configure alarms over this data:

Lumigo-第三方公司(同样,作为公开,这是我的工作场所).提供开箱即用的监视功能,专门为无服务器应用程序创建,例如异常数量的调用,成本等.此工具还提供了故障排除功能,以实现更深的可观察性.

Lumigo - 3rd party company (again, as a disclosure, this is my workplace). Provides out-of-the-box monitoring, specifically created for serverless applications, such as an abnormal number of invocations, costs, etc.. This tool also provides troubleshooting capabilities to enable deeper observability.

当然,您可以在线找到更多的第三方工具.一切都很棒-只要找到最适合您需求的产品即可.

Of course, there are more 3rd party tools that you can find online. All are great- just find the one that suits your requirement the best.

这篇关于监视AWS Lambda客户使用率的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆