Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Fukász Rómeó Ervin
/
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
4179e758
authored
Feb 07, 2014
by
Gregory Nagy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added vmtask celery based metrics fetch
parent
61d666bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
circle/vm/models/node.py
+3
-2
No files found.
circle/vm/models/node.py
View file @
4179e758
...
...
@@ -117,8 +117,9 @@ class Node(TimeStampedModel):
try
:
handler
=
GraphiteHandler
()
except
:
collected
[
"cpu.usage"
]
=
None
collected
[
"memory.usage"
]
=
self
.
ram_size
response
=
self
.
remote_query
(
vm_tasks
.
get_monitor_info
,
30
)
collected
[
'cpu.usage'
]
=
response
[
'cpu.usage'
]
collected
[
'memory.usage'
]
=
response
[
'memory.usage'
]
return
collected
query
=
Query
()
query
.
set_target
(
self
.
host
.
hostname
+
".circle"
)
...
...
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