Question

Get Droplet Bandwidth Metrics API units

I am able to get the bandwidth metrics from the API for any of my droplets. The returned data contains several pairs. The first seems to be the bandwidth usage and the second appears to be a Unix Timestamp. According to the Timestamp the usage is reported in two minute increments. If I ask for the bandwidth metrics for a 10 minute timespan, I will get 5 pairs of data. Does anyone know the units for the usage. I tried to figure it out but can’t make much sense of it and I don’t see it mentioned in the API documentation. Thanks


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.

Hello @timmills,

The bandwidth response from API displays bandwidth usage in megabits per second. Any data transfer sent by a Droplet using a public network interface will count against the transfer pool for that Droplet’s account.

Hope this helps!

Cheers, Lalitha