Question

Bandwidth Monitor

  • Posted July 24, 2013

Hi, Is there a way to monitor bandwidth usage of a droplet as I couldn’t find an API method for that

Subscribe
Share

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

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.

Accepted Answer

Hello,

Just a quick update here. DigitalOcean now has a Monitoring API endpoint that you could use. For more information you can take a look at the official API documentation here:

https://docs.digitalocean.com/reference/api/api-reference/#tag/Monitoring

Also, keep in mind that you need to have the DigitalOcean Metrics Agent installed on your Droplet in order to get some data back.

You can install the do-agent as per the instructions here:

https://docs.digitalocean.com/products/monitoring/how-to/install-agent/

Hope that this helps. Best, Bobby

I need help:

I’m development a app with PHP and I need implement any way to get Resources every X time.

I read de API v2 on Digital Ocean and don’t see any that help me.

For example, I need know How many RAM memory, CPU, Bandwidth is using by the Droplet?

Right now I can create, restart, poweroff, … but can’t not get any result on real time monitoring.

// create and return the created Droplet entity $created = $droplet->create(‘dropet-name’, ‘clc1’, ‘1024mb’, 45656735);

// delete the droplet $droplet->delete(XX); Don’t want/can install nothing on the server, I want any solution that I can access to API and get this result, please.

Any suggestion?

Post on Stackoverflow

<a href=“https://www.digitalocean.com/blog_posts/announcing-digitalocean-graphs”>Announcing DigitalOcean Graphs!</a>

Thank you all :)

Check out <a href=“https://www.digitalocean.com/community/questions/help-me-i-want-check-my-bandwitdh-in-digital-ocean”>help me… i want check my bandwitdh in digital ocean</a>

This isn’t currently implemented, but DO is working on it, see http://digitalocean.uservoice.com/forums/136585-digital-ocean/suggestions/3296966-show-resources-being-using-like-cpu-ram-disk-an <br> <br>If you wanted to monitor bandwidth usage you’d have to use a package like “vnstat” or “munin”.

Once they implement bandwidth limits, there should be a monitor in place. Use the package vnstat until then.