[collectd-changes] collectd, the system statistics collection daemon: Changes to 'master'

Florian Forster octo at verplant.org
Tue Nov 6 18:23:49 CET 2007


 AUTHORS               |    7 
 README                |    6 
 configure.in          |   56 +++
 src/Makefile.am       |   20 +
 src/collectd.conf.pod |   89 ++++++
 src/libvirtstats.c    |  720 ++++++++++++++++++++++++++++++++++++++++++++++++++
 src/types.db          |    2 
 src/uuid.c            |  289 ++++++++++++++++++++
 8 files changed, 1183 insertions(+), 6 deletions(-)

New commits:
commit fd64cb0b732f4d248e6187c78eef184fbb2143b0
Merge: 30f3e7b81e938d2fcf0512acb46e639a8cb37ae7 7f45f5b38fb6603172cd9d35d719927cef5e8370
Author: Florian Forster <octo at huhu.verplant.org>
Date:   Tue Nov 6 18:23:45 2007 +0100

    Merge branch 'rj/libvirtstats'
    
    Conflicts:
    
    	AUTHORS

commit 7f45f5b38fb6603172cd9d35d719927cef5e8370
Author: Florian Forster <octo at huhu.verplant.org>
Date:   Tue Nov 6 18:22:15 2007 +0100

    configure.in: Fixed spaces followed by tabs and trailing whitespaces.

commit f69ce75eded538c77c7af468fe983139658d69aa
Author: Richard Jones <rjones at redhat.com>
Date:   Tue Nov 6 15:49:19 2007 +0000

    libvirtstats plugin: Added a plugin to collect virtual host statistics.
    
      - rebased to git
      - includes updates to the manpage
      - ignorelist code now fixed
      - removed debugging messages
    
    Attached is a plugin allowing collectd to use libvirt to collect CPU, disk and
    network statistics for domains.
    
    Usage
    
    Signed-off-by: Florian Forster <octo at huhu.verplant.org>

commit 30f3e7b81e938d2fcf0512acb46e639a8cb37ae7
Author: Richard Jones <rjones at redhat.com>
Date:   Tue Nov 6 14:09:59 2007 +0000

    uuid plugin: Add a plugin which sets the hostname to an UUID.
    
    Florian Forster wrote:
    > Just out of curiosity: Why don't hostnames work for you?
    
    For guests there's the question of what we put in the hostname field. The
    previous plugin (libvirtstats) puts the guest's name in this field, but there
    are some problems with this:
    
       physicalserver1 <--- (hostname of physical server)
         |
          \--- database <--- (name of guest)
          \--- web
    
       physicalserver2
         |
          \--- database
          \--- web
    
       coldbackupserver
         |
         (no guests)
    
    Guest names aren't really unique. Different physical servers may have guests
    with overlapping names as in the example above. Also guest names aren't fixed.
    Xen in particular renames guests at will. For example if a guest is about to
    migrate then Xen renames the guest as 'migrating-foo' and if the guest is about
    to shutdown Xen renames it as 'Zombie-foo'. The administrator of the physical
    server can also rename guests.
    
    While you're migrating you'll have an intermediate situation like this:
    
       physicalserver1
         |
          \--- migrating-database
          \--- migrating-web     |
                                 | migration
       coldbackupserver          |
         |                       V
          \--- database
          \--- web
    
    During live migrations the old instance ('migrating-foo') is still running.
    
    The UUID is unique across physical servers, and is copied by migration and
    preserved across shutdowns so if you care about which guest your stats "really"
    came from then only the UUID tells you this.
    
    Guests also have a hostname which is separate from the guest's name (the
    guest's name is stored in the hypervisor, the hostname is stored inside the
    guest's kernel). However it's not feasible to access the guest's hostname from
    the hypervisor since this would involve some sort of snooping into the guest
    kernel. The guest might be running Windows or FreeBSD etc. The only feasible
    way to get this is to run an instance of collectd inside each guest, but then
    the uuid plugin will also work in this scenario and can get the UUID since it
    is exposed inside the guest either through an emulated BIOS or in
    /sys/hypervisor/uuid.
    
    Rich.
    
    Signed-off-by: Florian Forster <octo at huhu.verplant.org>




More information about the collectd-changes mailing list