Changeset 1777 for trunk


Ignore:
Timestamp:
Nov 25, 2008, 9:33:57 PM (16 years ago)
Author:
quentin
Message:

Munin Xen CPU utilization fixes

rrdtool and thus Munin can't handle floating point DERIVE or COUNTER sources, so convert to microseconds before passing to Munin.

Location:
trunk/packages/xvm-munin-config
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/xvm-munin-config/debian/changelog

    r1775 r1777  
     1xvm-munin-config (0.0.4) unstable; urgency=low
     2
     3  * Pass microseconds to Munin and display as percentages on graph
     4
     5 -- Quentin Smith <quentin@mit.edu>  Tue, 25 Nov 2008 21:31:07 -0500
     6
    17xvm-munin-config (0.0.3) unstable; urgency=low
    28
  • trunk/packages/xvm-munin-config/host/usr/share/xvm-munin-host-config/plugins/xen_cpu

    r1774 r1777  
    3737                                                'cpu_time': sum(metrics[d['metrics']]['VCPUs_utilisation'].values()),
    3838                                                'domid': d['domid'],
     39                                                'uuid': d['uuid'],
    3940                                                }
    4041        return ret
     
    4546                                                                         'cpu_time': sxp.child_value(d, 'cpu_time', 0.0),
    4647                                                                         'domid': sxp.child_value(d, 'domid', -1),
     48                                                                         'uuid': sxp.child_value(d, 'uuid', 'NONE'),
    4749                                                                         }
    4850        return ret
     
    7072        print "%s.min 0" % d
    7173        print "%s.type DERIVE" % d
    72         print "%s.info %s" % (d, name)
     74        print "%s.info %s" % (d, domains[d]['uuid'])
     75        print "%s.cdef %s,10000,/" % (d, d)
    7376    sys.exit(0)
    7477
    7578domains = getDomains()
    7679for d in sorted(domains):
    77     print "%s.value %s" % (d, domains[d]['cpu_time'])
     80    print "%s.value %s" % (d, long(domains[d]['cpu_time']*1000000))
Note: See TracChangeset for help on using the changeset viewer.