Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gelencsér Szabolcs
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
bac9f005
authored
Oct 26, 2016
by
Szabolcs Gelencser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix networking graph. Azure cannot give network metrics per
interface, only summarized.
parent
16003955
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
circle/dashboard/views/graph.py
+1
-1
No files found.
circle/dashboard/views/graph.py
View file @
bac9f005
...
@@ -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)")'
%
(
...
...
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