Commit bac9f005 by Szabolcs Gelencser

Fix networking graph. Azure cannot give network metrics per

interface, only summarized.
parent 16003955
......@@ -225,7 +225,7 @@ class VmNetwork(object):
def get_target(self):
metrics = []
for n in self.obj.interface_set.all():
params = (self.obj.metric_prefix, n.vlan.vid, n.vlan.name)
params = (self.obj.metric_prefix, "eth0", n.vlan.name)
metrics.append(
'alias(scaleToSeconds(nonNegativeDerivative('
'%s.network.bytes_recv-%s), 10), "out - %s (bits/s)")' % (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment