0

我有一个使用 Terraform 创建的存储桶。我在这个存储桶上定期上传,一切正常。现在,我想监控这个桶上的对象数,当我去监控并选择 GCS 桶和桶名过滤器时,它没有显示这个桶。所有其他存储桶都是可见的。任何帮助,将不胜感激。

4

1 回答 1

0

根据storage/object_count 部分的监控文档,提到Total number of objects per bucket, grouped by storage class. This value is measured once per day, and the value is repeated at each sampling interval throughout the day. 在上传对象的时间与在 Cloud Monitoring 上报告数据的时间之间通常存在延迟。因此,我们需要在第一个对象上传到存储桶的 1 天后检查。手动我们可以使用命令列出对象

gsutil ls -lR gs://$BUCKETNAME
于 2021-12-20T12:33:36.603 回答