[libvirt] Dom0 Interface stats with virDomainInterfaceStats

Would it be possible to enable fetch of the interface stats of the dom0 via the API? Stefan

On Thu, May 22, 2008 at 02:53:31AM +0200, Stefan de Konink wrote:
Would it be possible to enable fetch of the interface stats of the dom0 via the API?
It sounds a bit Xen specific, but I see no reason why this should not be allowed. Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/

On Thu, May 22, 2008 at 04:10:22AM -0400, Daniel Veillard wrote:
On Thu, May 22, 2008 at 02:53:31AM +0200, Stefan de Konink wrote:
Would it be possible to enable fetch of the interface stats of the dom0 via the API?
It sounds a bit Xen specific, but I see no reason why this should not be allowed.
I disagree - Dom0 is a concept only present in a subset of hypervisors. What Stefan is really asking for is ability to get stats of devices in the host OS. This kind of thing belongs in a separate API such as virNodeInterfaceStats so it is usable across all our drivers. Dan. -- |: Red Hat, Engineering, Boston -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

Daniel P. Berrange schreef:
On Thu, May 22, 2008 at 04:10:22AM -0400, Daniel Veillard wrote:
On Thu, May 22, 2008 at 02:53:31AM +0200, Stefan de Konink wrote:
Would it be possible to enable fetch of the interface stats of the dom0 via the API? It sounds a bit Xen specific, but I see no reason why this should not be allowed.
I disagree - Dom0 is a concept only present in a subset of hypervisors. What Stefan is really asking for is ability to get stats of devices in the host OS. This kind of thing belongs in a separate API such as virNodeInterfaceStats so it is usable across all our drivers.
I cannot hide anything from you ;) Stefan

On Thu, May 22, 2008 at 02:53:31AM +0200, Stefan de Konink wrote:
Would it be possible to enable fetch of the interface stats of the dom0 via the API?
I wonder if you mean remotely? Anyway, it's not possible with libvirt, but in general Linux you can always get the "dom0 network stats" by just reading /proc/net/dev Rich. -- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
participants (4)
-
Daniel P. Berrange
-
Daniel Veillard
-
Richard W.M. Jones
-
Stefan de Konink