AWS lambda,在执行时获得使用的带宽

use*_*287 5 amazon-web-services aws-lambda

我希望获得用于每个lambda执行的带宽.你知道这样做的方法吗?

我正在建立一个热码网关,需要计算带宽消耗.

Neo*_*Neo 0

尝试按客户标记您的功能。

https://aws.amazon.com/about-aws/whats-new/2017/04/aws-lambda-supports-tagging-and-cost-allocations/

https://docs.aws.amazon.com/lambda/latest/dg/tagging.html

这可能会导致您必须为客户复制函数,但这也可能是一件好事,因为您可以使用每个函数的并发限制来防止一个客户用完您的区域并发限制(这会限制其他客户)。

https://docs.aws.amazon.com/lambda/latest/dg/limits.html