Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gutyán Gábor
/
circlestack
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
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
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
class
GraphiteHandler
:
def
__init__
(
self
):
if
os
.
getenv
(
"
NODE_MONITOR
_SERVER"
)
is
""
:
if
os
.
getenv
(
"
GRAPHITE
_SERVER"
)
is
""
:
raise
RuntimeError
self
.
__server_name
=
os
.
getenv
(
"
NODE_MONITOR
_SERVER"
)
if
os
.
getenv
(
"
NODE_MONITOR
_PORT"
)
is
""
:
self
.
__server_name
=
os
.
getenv
(
"
GRAPHITE
_SERVER"
)
if
os
.
getenv
(
"
GRAPHITE
_PORT"
)
is
""
:
raise
RuntimeError
self
.
__server_port
=
os
.
getenv
(
"
NODE_MONITOR
_PORT"
)
self
.
__server_port
=
os
.
getenv
(
"
GRAPHITE
_PORT"
)
self
.
__queries
=
[]
self
.
__responses
=
[]
...
...
circle/vm/models/node.py
View file @
80243e9a
...
...
@@ -127,7 +127,7 @@ class Node(TimeStampedModel):
handler
.
put
(
query
)
handler
.
send
()
for
metric
in
metrics
:
response
=
query
.
pop
()
response
=
handler
.
pop
()
length
=
len
(
response
[
0
][
"datapoints"
])
cache
=
response
[
0
][
"datapoints"
][
length
-
1
][
0
]
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