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): ...@@ -225,7 +225,7 @@ class VmNetwork(object):
def get_target(self): def get_target(self):
metrics = [] metrics = []
for n in self.obj.interface_set.all(): 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( metrics.append(
'alias(scaleToSeconds(nonNegativeDerivative(' 'alias(scaleToSeconds(nonNegativeDerivative('
'%s.network.bytes_recv-%s), 10), "out - %s (bits/s)")' % ( '%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