Spaces Usage Analytics?

Hi, is there some API or dashboard to see the breakdown of bandwidth and storage consumption of each bucket?

Hypothetically I have a product and want to bill my customers for the bandwidth that they each use.

In theory I can compute the total storage, but how can I programmatically determine the outbound bandwidth that each bucket (or folder) has consumed?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This actually is possible. Though I am not sure about bandwith, you can go to the folowing url to view statistics.<bucket-name>/stats. It will return he following data. {“bucket_stats”:{“user_id”:int: a user id,“bucket_name”:“<bucket-name>”,“num_bytes”:int: bytes used,“num_objects”:int: object count}} Edit: This does require authorization in the type of a cookie.

I second this

Bumping this post. Very happy with the setup phase of Spaces and I would have expected at least a basic usage dashboard like with most other DO services! A bit disappointed this does not seem to be in place yet. Even if it’s just total statistics, storage used, bandwidth used etc.

Hope this is in the making!