Google 云存储桶大小或对象计数监控
Google cloud storage bucket size or objects count monitoring
我在 stackdriver 中创建了一个策略,以便在 Google 存储桶的大小增加时收到警报。
它只包含一个条件:Violates when: storage.googleapis.com/storage/total_bytes is above a threshold of 1 for greater than 2 minutes
What I noticed that it takes several hours to detect that files are
deleted/added to the bucket, what I expected that it takes few seconds
( same as other metrics for example PubSub subscription monitoring )
to detect the the bucket size is increased/decreased.
我也使用了度量标准 storage.googleapis。com/storage/object_count 并得到了几乎相同的结果。
我错过了什么?
Google 云存储的 Stackdriver 大小度量每天更新。我们将更新文档以使其更清楚。
我在 stackdriver 中创建了一个策略,以便在 Google 存储桶的大小增加时收到警报。
它只包含一个条件:Violates when: storage.googleapis.com/storage/total_bytes is above a threshold of 1 for greater than 2 minutes
What I noticed that it takes several hours to detect that files are deleted/added to the bucket, what I expected that it takes few seconds ( same as other metrics for example PubSub subscription monitoring ) to detect the the bucket size is increased/decreased.
我也使用了度量标准 storage.googleapis。com/storage/object_count 并得到了几乎相同的结果。
我错过了什么?
Google 云存储的 Stackdriver 大小度量每天更新。我们将更新文档以使其更清楚。