| Author |
Message |
jantman
Joined: 12 Oct 2011
Posts: 5
Location: NJ, USA
|
| Posted: Wed Feb 08, 2012 12:43 am Post subject: Linode transfer/CPU/disk stats |
|
|
I'm trying to check the network transfer/disk/CPU stats of my linode without logging in to the manager web UI.
I found some references (http://www.linode.com/forums/viewtopic.php?t=1558 or http://www.linode.com/wiki/index.php/Bandwidth) as well as a number of other places, to being able to remotely retrieve these stats as well as host load and job queue, node uptime, node cpu utilization, etc.
It appears that the linode API only retrieves transfer used (account.info)... and the URLs given in the circa 2009 docs for this (http://www.linode.com/members/info/?user=linodeXXXXXX) are just giving me a "DENIED" error.
Does anyone have up-to-date information on how to get these metrics?
Thanks,
Jason |
|
| Back to top |
|
hybinet
Joined: 02 May 2008
Posts: 1058
|
| Posted: Wed Feb 08, 2012 1:36 am Post subject: |
|
|
| There are tools that you can run inside your linode that give you a lot more information than the Dashboard graphs do. Try munin, for example. It's very good for monitoring memory usage and other metrics. |
|
| Back to top |
|
jantman
Joined: 12 Oct 2011
Posts: 5
Location: NJ, USA
|
| Posted: Wed Feb 08, 2012 8:40 am Post subject: |
|
|
hybinet wrote: There are tools that you can run inside your linode that give you a lot more information than the Dashboard graphs do. Try munin, for example. It's very good for monitoring memory usage and other metrics.
I'm more interested in:
My monthly network transfer as Linode sees it
Host (i.e. Xen dom0, Linode's physical box) load and status
Host job queue length
Physical disk IO
My CPU usage as the Linode host sees it *
I'm most interested in the first three, as there's obviously no way to check any even vaguely related metric from domU.
Where did these data feeds go?
* Due to time slicing, there can potentially be large discrepancies between CPU usage reported inside a VM and in its host. If for some reason the VM host gives unfair shares to another VM, or is CPU-bound itself in the host OS / dom0, the guest itself will never see this. |
|
| Back to top |
|
Guspaz
Joined: 26 May 2009
Posts: 1150
Location: Montreal, QC
|
| Posted: Wed Feb 08, 2012 10:08 am Post subject: |
|
|
| Most of those must be measured from inside the linode (I also recommend Munin). There is no automated way to retrieve them from the manager in most cases. |
|
| Back to top |
|
jantman
Joined: 12 Oct 2011
Posts: 5
Location: NJ, USA
|
| Posted: Wed Feb 08, 2012 10:18 am Post subject: |
|
|
Guspaz wrote: Most of those must be measured from inside the linode (I also recommend Munin). There is no automated way to retrieve them from the manager in most cases.
Maybe I should just open a ticket for this...
I'm looking at
http://www.linode.com/forums/viewtopic.php?t=1558
and
http://www.linode.com/wiki/index.php/Bandwidth
Which state that there is (or was) an XML feed of this information. I know that network transfer/bandwidth usage is available via the accounts.info() API call.
Can ANYONE give me an informed answer on whether these XML feeds have moved, or were discontinued, or what the status is?
And, if they've been permanently shut off, whether there are plans to add at least host (dom0) status/load/job queue length and physical disk IO to the API?
I know Munin very well, though personally I perfer Cacti or Nagios/Icinga with pnp4nagios. I thought I did an adequate job of explaining why some of these metrics are IMPOSSIBLE to collect in the guest, and the others are not reliable. |
|
| Back to top |
|
Guspaz
Joined: 26 May 2009
Posts: 1150
Location: Montreal, QC
|
| Posted: Wed Feb 08, 2012 11:00 am Post subject: |
|
|
The official answer is to do it yourself in your linode:
http://forum.linode.com/viewtopic.php?p=30938#30938
You've done an adequate job of explaining why YOU think the metrics are impossible to collect in the guest, but that doesn't mean you're right. Of the metrics that you've listed, they're all either available for accurate measurement from within the guest, not available outside the management interface, or not available in *any* place. |
|
| Back to top |
|
hoopycat
Joined: 30 Aug 2008
Posts: 1294
Location: Rochester, New York
|
| Posted: Wed Feb 08, 2012 11:46 am Post subject: |
|
|
| It works for me, but only via IPv4. |
|
| Back to top |
|
hybinet
Joined: 02 May 2008
Posts: 1058
|
| Posted: Wed Feb 08, 2012 3:15 pm Post subject: |
|
|
jantman wrote: Host (i.e. Xen dom0, Linode's physical box) load and status
Host job queue length
My CPU usage as the Linode host sees it *
* Due to time slicing, there can potentially be large discrepancies between CPU usage reported inside a VM and in its host. If for some reason the VM host gives unfair shares to another VM, or is CPU-bound itself in the host OS / dom0, the guest itself will never see this.
AFAIK there are ways to measure stolen CPU cycles from inside the VM, though this would have to be supported by the kernel and your measurement tools (munin, nagios, whatever). I've personally never had to worry about receiving an unfair amount of CPU here, and CPU usage measured from inside the VM is usually very close to CPU usage reported in the Dashboard.
Also, why would you want to monitor the host's load and queue length? Seriously, what the host machine is doing is none of your business. I never quite understood the point of showing it in the Dashboard in the first place, since it's always either "low" or "medium" and the difference between the two doesn't affect the VM's performance in any way. |
|
| Back to top |
|
Guspaz
Joined: 26 May 2009
Posts: 1150
Location: Montreal, QC
|
| Posted: Wed Feb 08, 2012 3:39 pm Post subject: |
|
|
hybinet wrote: I never quite understood the point of showing it in the Dashboard in the first place, since it's always either "low" or "medium" and the difference between the two doesn't affect the VM's performance in any way.
Mine shows "idle" :P |
|
| Back to top |
|
rsk
Joined: 24 Nov 2009
Posts: 306
|
| Posted: Wed Feb 08, 2012 5:44 pm Post subject: |
|
|
Guspaz wrote: hybinet wrote: I never quite understood the point of showing it in the Dashboard in the first place, since it's always either "low" or "medium" and the difference between the two doesn't affect the VM's performance in any way.
Mine shows "idle" :P
From what I heard, the "host load" readout was correct for UML, got broken and always shown "idle" for Xen, then got removed with the switch to new manager, and readded when some people complained(including me, but I was complaining about lack of the physical host name on the dashboard, not the load status).
Wouldn't be surprised if it again always show "idle" no matter what, I've never saw it say anything else. But maybe Linode's hardware is just THAT good. :) |
|
| Back to top |
|
obs
Joined: 07 Mar 2010
Posts: 1403
Location: Earth
|
| Posted: Wed Feb 08, 2012 7:22 pm Post subject: |
|
|
| I've seen it on high, a few days ago a host had a hardware failure and the drives had to be hot-swapped to a backup host (very quickly I might add thanks to the linode-awesomeness). |
|
| Back to top |
|
| |