是否可以知道 S3 存储桶中的平均请求量?

Is it possible to know the request amount average in a S3 Bucket?

当用户尝试访问静态内容时,我们最终收到来自 S3 存储桶的速率限制错误。经过一些研究,我们发现 S3 存储桶的默认速率限制为每秒 5.5k 个请求,这远远超过了我们的需要和使用,这就是问题所在。

我们通过监控工具知道我们的应用程序没有收到那么多的请求,但是,我们可以直接从 S3 存储桶中检查吗?也许我们不知何故被淹没了,我们只是想确定一下。

提前致谢。


已编辑:

Istvan 的回答帮助我发现了 S3 请求指标,它正是我正在寻找的。此外,对于那些需要深入了解有关 S3 请求的更多信息的人,还有另一种方法是:

参考: https://aws.amazon.com/premiumsupport/knowledge-center/analyze-logs-athena/

有针对 S3 存储桶的高级监控。强烈建议在您的 S3 存储桶前端使用 CloudFront,以防用户访问它。

https://docs.aws.amazon.com/AmazonS3/latest/userguide/cloudwatch-monitoring.html

Request metrics ‐ Monitor Amazon S3 requests to quickly identify and act on operational issues. The metrics are available at 1-minute intervals after some latency to process. These CloudWatch metrics are billed at the same rate as the Amazon CloudWatch custom metrics. For information about CloudWatch pricing, see Amazon CloudWatch pricing. To learn how to opt in to getting these metrics, see CloudWatch metrics configurations.

When enabled, request metrics are reported for all object operations. By default, these 1-minute metrics are available at the Amazon S3 bucket level. You can also define a filter for the metrics collected using a shared prefix or object tag. This allows you to align metrics filters to specific business applications, workflows, or internal organizations.

https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-serve-static-website/