Feature #472

Get cpu consumption from KVM VMs

Added by Javi Fontan over 1 year ago. Updated about 1 year ago.

Status:Closed Start date:01/21/2011
Priority:Normal Due date:
Assignee:Javi Fontan % Done:

0%

Category:Drivers
Target version:Release 2.2
Resolution:fixed
Story points-
Velocity based estimate-

Description

KVM virtual machines lack cpu consumption information

Associated revisions

Revision 1243da07
Added by Javi Fontan over 1 year ago

New KVM poll command

feature #446: gets information from all vm's in the host so
it can be used with ganglia
feature #244: gets network interface statistics
feature #472: gets cpu consumption

Revision fa0d4a19
Added by Javi Fontan over 1 year ago

New probes and ganglia readers

Feature #244: Network interface statistics for KVM
Feature #446: Probe to get monitoring info from ganglia
Feature #472: Get cpu consumption from KVM VMs

poll_xen_kvm.rb - This new probe gets information from XEN and KVM vms.
If it is called with the name of a VM then its monitoring information
is written in standard poll probe way. If called without parameters
a base64-encoded yaml-representation of a hash containing the information
about all the VMs running in the host is returned.

poll_ganglia.rb - This probe gets information from ganglia pushed by gmetric.
Consumes the information generated by poll_xen_kvm.rb

ganglia_probe - Gets host monitoring information from ganglia. It pushes all
metrics that start by OPENNEBULA_

Ganglia.rb - library that holds ganglia reading code

Revision ff8e45da
Added by Javi Fontan over 1 year ago

New probes and ganglia readers (from branch feature-446)

Feature #244: Network interface statistics for KVM
Feature #446: Probe to get monitoring info from ganglia
Feature #472: Get cpu consumption from KVM VMs

poll_xen_kvm.rb - This new probe gets information from XEN and KVM vms.
If it is called with the name of a VM then its monitoring information
is written in standard poll probe way. If called without parameters
a base64-encoded yaml-representation of a hash containing the information
about all the VMs running in the host is returned.

poll_ganglia.rb - This probe gets information from ganglia pushed by gmetric.
Consumes the information generated by poll_xen_kvm.rb

ganglia_probe - Gets host monitoring information from ganglia. It pushes all
metrics that start by OPENNEBULA_

Ganglia.rb - library that holds ganglia reading code

History

Updated by Ruben S. Montero over 1 year ago

  • Target version set to Release 2.2

Updated by Shi Jin about 1 year ago

I am very happy to see the monitoring code here.
Just one thing: the poll code calls the ps command for CPU utilization which is the average from the starting of the VM while I would say we should use something like top to get more instantaneous (averaged since last top update, typically 3 seconds) CPU monitoring. Of course we need to first define what the CPU column from the "onevm list" output is for: instantaneous or average from the start.

Thank you.
Shi

Updated by Javi Fontan about 1 year ago

  • Status changed from Assigned to Closed
  • Resolution set to fixed

We will deal with the way we get CPU info for kvm machines in later releases.

Also available in: Atom PDF