Thank you for visiting the Rackspace Community
The Community is live! Post new content or topics so our teams can assist.

Please contact your support team if you have a question or need assistance for any Rackspace products, services, or articles.

Retrieve Bandwidth via API/Pyrax

This question is answered.

Hey Guys,

I've been looking through the documentation on docs.rackspace.com and the pyrax documentation but can't find an answer for this one and would like some assistance; is it possible to retrieve the bandwidth information per account (or device would be preferable) via the API or Pyrax?

Regards,

Reis

Verified Answer
  • Unfortunately it looks like we did not update the feature comparison page in the knowledge center when we removed that API call.  At this time it is not possible to get that bandwidth through the next-gen API.  I have opened a feedback request for that knowledge center article to have them update it so other customers don't deal with the same confusion.  

    You are correct as well about the account bandwidth being shown instead of a per server basis.  Our control panel only shows the aggregate for now.

    I'll open this up to the rest of the community to give some ideas.  You could possibly look at the bandwidth from the OS level and use the cloud monitoring agent to grab the outgoing network bandwidth.  Any other ideas?

All Replies
  • Good morning Reis,

      I am speaking with our pyrax lead developer now.  Can you confirm whether you are looking for server bandwidth, cloud files usage, or load balancer bandwidth?  Thanks!

  • Thanks Evan.


    Primarily I'm after the server bandwidth but the other information would be immensely useful to have as well.

  • Reis,

       I'm still working on seeing if there is another way to get the data, but the pyrax.cloudservers.usage.get call returns 404 errors now.  Digging into that I found this in our API developers guide for next-gen servers:

    Removed the Bandwidth extension from Chapter 3, Rackspace Extensions since the extension is no longer implemented. It causes an unsustainable load on Nova. Also removed cross-reference from Section 2.1.1, “List Servers” and Section 2.1.3, “Get Server Details”

    That explains why we cannot get that data from novaclient, which pyrax uses to connect to cloud servers.  I apologize for the inconvenience of this.  I am continuing to investigate another option, but am not sure it will be possible at this time.

  • Hi Even,

    Reis actually raised this one for me off the back of a support ticket. 

    I was aware that the extension was recently removed due to the load on NOVA which is a bit of a pain, however when looking into this source - http://www.rackspace.com/knowledge_center/article/next-gen-vs-first-gen-feature-comparison it said that there was still an API available. 


    Should their not be an API this information was also going to be available in the control panel. Now so far as I can see there isn't a server by server breakdown of bandwidth, you can only see an aggregated amount for all your servers. 

    Our next option should the API not be available was going to be screen scraping the info from the CP.. This however doesn't look possible either 

  • Unfortunately it looks like we did not update the feature comparison page in the knowledge center when we removed that API call.  At this time it is not possible to get that bandwidth through the next-gen API.  I have opened a feedback request for that knowledge center article to have them update it so other customers don't deal with the same confusion.  

    You are correct as well about the account bandwidth being shown instead of a per server basis.  Our control panel only shows the aggregate for now.

    I'll open this up to the rest of the community to give some ideas.  You could possibly look at the bandwidth from the OS level and use the cloud monitoring agent to grab the outgoing network bandwidth.  Any other ideas?

  • so the challenge is that we are in the process of building a cloud management/operations platform (similar to cloudability) but not just cost management. 

    If our customers are using our service they will put in their API key (and username+password) should we be screen scraping, and then we will collect the data for them etc. 

    I don't imagine then that we would be able to use the cloud monitoring agent nor the cloud monitoring API to pull that information from our customers Rackspace control panel? 

  • Sorry for the delay cooper! It may be possible to dump the agent network check statistics from the monitoring API using the API key. I'll see if I can get an answer on that today
  • Hey Even, did you manage to get to the bottom of it?

  • c00per,

    While I don't have a how to at this time on doing this, the best bet is to require the monitoring agent to be installed on the cloud server.  Then enable the agent.network check.  You can use our metrics api to pull the stats from that check directly:  http://docs.rackspace.com/cm/api/v1.0/cm-devguide/content/metrics-api.html

    For more info on the announcement about this from April: http://www.rackspace.com/blog/cloud-monitoring-adds-server-monitoring-graphs-and-more/

  • Hi there c00per!

    Have you tried Munin? It has some great tools, here is their demo:
    http://demo.munin-monitoring.org/

    Munin page:
    http://munin-monitoring.org/

    There is an article of how to install here:
    http://www.rackspace.com/knowledge_center/article/how-to-install-munin-monitoring-systems

    I hope this would be a solution for you right now.

  • Just a quick update that we fixed the feature comparison article to reflect that this is no longer possible via the cloud servers api