Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
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
80243e9a
authored
Feb 04, 2014
by
Gregory Nagy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
os env variables changed
parent
baacc263
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
circle/monitor/calvin/calvin.py
+4
-4
circle/vm/models/node.py
+1
-1
No files found.
circle/monitor/calvin/calvin.py
View file @
80243e9a
...
@@ -5,12 +5,12 @@ import os
...
@@ -5,12 +5,12 @@ import os
class
GraphiteHandler
:
class
GraphiteHandler
:
def
__init__
(
self
):
def
__init__
(
self
):
if
os
.
getenv
(
"
NODE_MONITOR
_SERVER"
)
is
""
:
if
os
.
getenv
(
"
GRAPHITE
_SERVER"
)
is
""
:
raise
RuntimeError
raise
RuntimeError
self
.
__server_name
=
os
.
getenv
(
"
NODE_MONITOR
_SERVER"
)
self
.
__server_name
=
os
.
getenv
(
"
GRAPHITE
_SERVER"
)
if
os
.
getenv
(
"
NODE_MONITOR
_PORT"
)
is
""
:
if
os
.
getenv
(
"
GRAPHITE
_PORT"
)
is
""
:
raise
RuntimeError
raise
RuntimeError
self
.
__server_port
=
os
.
getenv
(
"
NODE_MONITOR
_PORT"
)
self
.
__server_port
=
os
.
getenv
(
"
GRAPHITE
_PORT"
)
self
.
__queries
=
[]
self
.
__queries
=
[]
self
.
__responses
=
[]
self
.
__responses
=
[]
...
...
circle/vm/models/node.py
View file @
80243e9a
...
@@ -127,7 +127,7 @@ class Node(TimeStampedModel):
...
@@ -127,7 +127,7 @@ class Node(TimeStampedModel):
handler
.
put
(
query
)
handler
.
put
(
query
)
handler
.
send
()
handler
.
send
()
for
metric
in
metrics
:
for
metric
in
metrics
:
response
=
query
.
pop
()
response
=
handler
.
pop
()
length
=
len
(
response
[
0
][
"datapoints"
])
length
=
len
(
response
[
0
][
"datapoints"
])
cache
=
response
[
0
][
"datapoints"
][
length
-
1
][
0
]
cache
=
response
[
0
][
"datapoints"
][
length
-
1
][
0
]
if
cache
is
None
:
if
cache
is
None
:
...
...
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