Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
5
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
353c60a1
authored
Jul 08, 2022
by
Szeberényi Imre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
grapithe_url fix
parent
2b7da3e3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
circle/circle/settings/base.py
+1
-1
circle/dashboard/views/graph.py
+1
-1
No files found.
circle/circle/settings/base.py
View file @
353c60a1
...
@@ -577,7 +577,7 @@ VNC_PORT_RANGE = (int(first), int(last)) # inclusive start, exclusive end
...
@@ -577,7 +577,7 @@ VNC_PORT_RANGE = (int(first), int(last)) # inclusive start, exclusive end
graphite_host
=
environ
.
get
(
"GRAPHITE_HOST"
,
None
)
graphite_host
=
environ
.
get
(
"GRAPHITE_HOST"
,
None
)
graphite_port
=
environ
.
get
(
"GRAPHITE_PORT"
,
None
)
graphite_port
=
environ
.
get
(
"GRAPHITE_PORT"
,
None
)
if
graphite_host
and
graphite_port
:
if
graphite_host
and
graphite_port
:
GRAPHITE_URL
=
'http://
%
s:
%
s
/render/
'
%
(
graphite_host
,
graphite_port
)
GRAPHITE_URL
=
'http://
%
s:
%
s'
%
(
graphite_host
,
graphite_port
)
else
:
else
:
GRAPHITE_URL
=
None
GRAPHITE_URL
=
None
...
...
circle/dashboard/views/graph.py
View file @
353c60a1
...
@@ -121,7 +121,7 @@ class Metric(object):
...
@@ -121,7 +121,7 @@ class Metric(object):
params
[
'yMax'
]
=
ymax
params
[
'yMax'
]
=
ymax
logger
.
debug
(
'
%
s
%
s'
,
graphite_url
,
params
)
logger
.
debug
(
'
%
s
%
s'
,
graphite_url
,
params
)
response
=
requests
.
get
(
'
%
s/render
/
'
%
graphite_url
,
params
=
params
)
response
=
requests
.
get
(
'
%
s/render'
%
graphite_url
,
params
=
params
)
return
response
.
content
return
response
.
content
...
...
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