Hi folks


I'm just following up on my action: [ACTION] Maryam to double check what cpu 
metrics are available through libvirt as regards the CPU utilization, when you 
are running collectd on the host



I believe the metrics available are:

cpu_time

system_time

user_time



source: 
http://libvirt.org/docs/libvirt-appdev-guide-python/en-US/html/libvirt_application_development_guide_using_python-Guest_Domains-Monitoring-vCPU.html



It looks like they just got merged into collectd: 
https://github.com/collectd/collectd/pull/2175#event-963475816



Definitions for the cpu stats from  
https://libvirt.org/html/libvirt-libvirt-domain.html#VIR_DOMAIN_CPU_STATS_CPUTIME
 :

VIR_DOMAIN_CPU_STATS_CPUTIME

cpu usage (sum of both vcpu and hypervisor usage) in nanoseconds, as a ullong



VIR_DOMAIN_CPU_STATS_SYSTEMTIME

cpu time charged to system instructions in nanoseconds, as a ullong



VIR_DOMAIN_CPU_STATS_USERTIME

cpu time charged to user instructions in nanoseconds, as a ullong



VIR_DOMAIN_CPU_STATS_VCPUTIME

vcpu usage in nanoseconds (cpu_time excluding hypervisor time), as a ullong



A note as regards the accuracy: 
https://www.redhat.com/archives/libvir-list/2009-March/msg00381.html But we'll 
still test it :D



A quick note on the guest clock: 
https://libvirt.org/formatdomain.html#elementsTime


BR
Maryam
_______________________________________________
opnfv-tech-discuss mailing list
[email protected]
https://lists.opnfv.org/mailman/listinfo/opnfv-tech-discuss

Reply via email to