Commit 186489f5 by Bach Dániel

exclude firewall interfaces

parent 2e82e233
...@@ -123,7 +123,11 @@ class Client: ...@@ -123,7 +123,11 @@ class Client:
interfaces = psutil.network_io_counters(pernic=True) interfaces = psutil.network_io_counters(pernic=True)
for interface, data in interfaces.iteritems(): for interface, data in interfaces.iteritems():
if not interface.startswith('cloud-'): if not (interface.startswith('cloud') or
interface.endswith('-EXT') or
interface.startswith('net') or
interface.startswith('link') or
interface in ('lo', 'firewall', 'virbr0', 'ovs-system')):
for metric in ('packets_sent', 'packets_recv', for metric in ('packets_sent', 'packets_recv',
'bytes_sent', 'bytes_recv'): 'bytes_sent', 'bytes_recv'):
metrics['network.%s-%s' % metrics['network.%s-%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