Changeset 1777 for trunk/packages/xvm-munin-config/host/usr/share/xvm-munin-host-config/plugins/xen_cpu
- Timestamp:
- Nov 25, 2008, 9:33:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.