Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
monitor-client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
186489f5
authored
Sep 19, 2014
by
Bach Dániel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exclude firewall interfaces
parent
2e82e233
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
src/client.py
+5
-1
No files found.
src/client.py
View file @
186489f5
...
@@ -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'
%
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment