graph_vlabel Bytes rx(-)/tx(+) per second
graph_category KVM
graph_info This graph shows the network I/O of the virtual machines
-graph_args --base 1024
- """
+graph_args --base 1024"""
print base_config
for pid in vms:
macs = get_vm_macs(pid)
i = 0
for mac in macs:
- print "%s_eth%s_in.label %s" % (vms[pid],i, vms[pid])
+ print "%s_eth%s_in.label %s_eth%s" % (vms[pid],i, vms[pid], i)
print "%s_eth%s_in.type COUNTER" % (vms[pid], i)
print "%s_eth%s_in.min 0" % (vms[pid],i)
print "%s_eth%s_in.draw LINE2" % (vms[pid],i)
print "%s_eth%s_out.negative %s_eth%s_in" % (vms[pid], i, vms[pid], i)
- print "%s_eth%s_out.label %s" % (vms[pid], i, vms[pid])
+ print "%s_eth%s_out.label %s_eth%s" % (vms[pid], i, vms[pid], i)
print "%s_eth%s_out.type COUNTER" % (vms[pid], i)
print "%s_eth%s_out.min 0" % (vms[pid], i)
print "%s_eth%s_out.draw LINE2" % (vms[pid], i)