Changeset 1777 for trunk/packages/xvm-munin-config
- Timestamp:
- Nov 25, 2008, 9:33:57 PM (16 years ago)
- Location:
- trunk/packages/xvm-munin-config
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/xvm-munin-config/debian/changelog
r1775 r1777 1 xvm-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 1 7 xvm-munin-config (0.0.3) unstable; urgency=low 2 8 -
trunk/packages/xvm-munin-config/host/usr/share/xvm-munin-host-config/plugins/xen_cpu
r1774 r1777 37 37 'cpu_time': sum(metrics[d['metrics']]['VCPUs_utilisation'].values()), 38 38 'domid': d['domid'], 39 'uuid': d['uuid'], 39 40 } 40 41 return ret … … 45 46 'cpu_time': sxp.child_value(d, 'cpu_time', 0.0), 46 47 'domid': sxp.child_value(d, 'domid', -1), 48 'uuid': sxp.child_value(d, 'uuid', 'NONE'), 47 49 } 48 50 return ret … … 70 72 print "%s.min 0" % d 71 73 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) 73 76 sys.exit(0) 74 77 75 78 domains = getDomains() 76 79 for 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.