WANG Cheng D
2016-Dec-06 08:34 UTC
[libvirt-users] How can openstack retrieve the CPU usage of a lxc via libvirt?
Dear all, I want to have a view of lxc CPU usage in openstack Dashboard. According the Openstack official site , Openstack Ceilometer can poll libvirt daemon to obtain CPU usage of a virtual machine. I tried the command locally on the libvirtd host "virsh -c lxc:/// domjobinfo", I got an error "error: this function is not supported by the connection driver: virDomainGetJobInfo" I am not sure if Openstack Ceilometer can retrieve the CPU usage of a linux container, if it can, which virsh command or API should be used to this? Thank you for your response in advance. Cheng
Daniel P. Berrange
2016-Dec-06 09:15 UTC
Re: [libvirt-users] How can openstack retrieve the CPU usage of a lxc via libvirt?
On Tue, Dec 06, 2016 at 08:34:22AM +0000, WANG Cheng D wrote:> Dear all, > > I want to have a view of lxc CPU usage in openstack Dashboard. According the Openstack official site , Openstack Ceilometer can poll libvirt daemon to obtain CPU usage of a virtual machine. I tried the command locally on the libvirtd host "virsh -c lxc:/// domjobinfo", I got an error "error: this function is not supported by the connection driver: virDomainGetJobInfo"virDomainGetJobInfo is for getting information about background jobs (such as save/restore/migrate), it has nothing todo with CPU usage. For CPU usage you need virDomainGetCPUStats Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|
Maybe Matching Threads
- Live Migration failure: this function is not supported by the connection driver: virDomainMigrateToURI2
- [LXC][Openstack] Clarifications needed on usage of libvirt-lxc for openstack
- Use virsh command domjobinfo but get nothing
- [Ceph] blockInfo cannot work with network type disk
- [PATCH] v2v: -o openstack: Check openstack binary exists before running it.