1

I'm trying to set up a CloudWatch dashboard to monitor total S3 storage usage. I can add each BucketSizeBytes metric, and then use an equation SUM(METRICS()), and see the total, but if I use a SEARCH() to include all the MetricName="BucketSizeBytes", the SUM() doesn't return any value. Is there something else I need to add to my formula or search to get this to work?

This is probably easier to explain with a screenshot

screenshot

1

Figured it out. You have to put the SEARCH() inside the SUM(), i.e.

SUM(SEARCH('{AWS/S3,BucketName,StorageType} MetricName="BucketSizeBytes"', 'Average', 300))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.