Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How do I get exact GCS Bucket-Object Counts from Metrics Explorer?

Hello,

The GCS Bucket-Object Count metric in the Metrics Explorer console, with the Aggregation set to Unaggregated,  displays scaled and rounded counts, e.g. 42.508 M, of each bucket in a project. How can Metrics Explorer be configured to display exact counts, e.g. 42508223?

I'd expect this to be configurable in the right-hand Display side bar in the Metrics Explorer console, but did not find such a configuration capability.

Thanks

0 1 133
1 REPLY 1

I haven't figured out whether the console can be configured to obtain exact counts, but you can get exact counts from a downloaded CSV (at least in the examples which I have generated.) You can get a CSV by clicking on the 'Download CSV' button towards the top right of the console page.

Note that the resulting CSV is transposed from what you might expect. In addition to other data, the resulting CSV has a line corresponding to each sample DateTime in the corresponding query. Each such line has an exact value for each of the elements (e.g. buckets) sampled.