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
Commit
da3f97fa
authored
Feb 03, 2014
by
Gregory Nagy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Naming convention
parent
0dd53d40
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
circle/vm/models/node.py
+4
-4
No files found.
circle/vm/models/node.py
View file @
da3f97fa
...
@@ -115,14 +115,14 @@ class Node(TimeStampedModel):
...
@@ -115,14 +115,14 @@ class Node(TimeStampedModel):
def
get_monitor_info
(
self
):
def
get_monitor_info
(
self
):
query
=
Query
()
query
=
Query
()
handler
=
GraphiteHandler
()
handler
=
GraphiteHandler
()
query
.
set
T
arget
(
self
.
host
.
hostname
+
".circle"
)
query
.
set
_t
arget
(
self
.
host
.
hostname
+
".circle"
)
query
.
set
F
ormat
(
"json"
)
query
.
set
_f
ormat
(
"json"
)
query
.
set
RelativeS
tart
(
5
,
"minutes"
)
query
.
set
_relative_s
tart
(
5
,
"minutes"
)
metrics
=
[
"cpu.usage"
,
"memory.usage"
,
"network.bytes_sent"
,
metrics
=
[
"cpu.usage"
,
"memory.usage"
,
"network.bytes_sent"
,
"network.bytes_received"
]
"network.bytes_received"
]
collected
=
{}
collected
=
{}
for
metric
in
metrics
:
for
metric
in
metrics
:
query
.
set
M
etric
(
metric
)
query
.
set
_m
etric
(
metric
)
query
.
generate
()
query
.
generate
()
handler
.
put
(
query
)
handler
.
put
(
query
)
handler
.
send
()
handler
.
send
()
...
...
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