如何查找 DynamoDB 上的总点击数 table
How to find total hits on DynamoDB table
我有一个 Lambda 函数正在访问 DynamoDB 并从那里获取值。我想检查是否有任何方法可以查看 lambda 命中 DynamoDB 的次数 table。我试图在 CloudWatch 中查看但无法找到它。
没有简单的方法可以做到。
如果 lambda 是此 table
的唯一使用者,则可以对 table 使用 read/write 容量指标
在 Dynamodb 下 -> 你 table -> Metrics,或来自 CW Metrics
并根据这个题目计算出动作的度量值:
目前,AWS 没有显示您要求的这些指标
如果您拥有 Lambda 背后的源代码,那么您可以让它在每次进行 DDB 调用时(或 DDB 调用失败时)发出一个指标。
您可以在此处阅读有关自定义指标的更多信息https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html
我有一个 Lambda 函数正在访问 DynamoDB 并从那里获取值。我想检查是否有任何方法可以查看 lambda 命中 DynamoDB 的次数 table。我试图在 CloudWatch 中查看但无法找到它。
没有简单的方法可以做到。 如果 lambda 是此 table
的唯一使用者,则可以对 table 使用 read/write 容量指标在 Dynamodb 下 -> 你 table -> Metrics,或来自 CW Metrics
并根据这个题目计算出动作的度量值:
目前,AWS 没有显示您要求的这些指标
如果您拥有 Lambda 背后的源代码,那么您可以让它在每次进行 DDB 调用时(或 DDB 调用失败时)发出一个指标。
您可以在此处阅读有关自定义指标的更多信息https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html