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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
c6702fc4
authored
Feb 05, 2014
by
Gregory Nagy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Graphite avoiding vmtasks integration
parent
c1c17114
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
circle/vm/models/node.py
+7
-1
No files found.
circle/vm/models/node.py
View file @
c6702fc4
...
@@ -113,8 +113,14 @@ class Node(TimeStampedModel):
...
@@ -113,8 +113,14 @@ class Node(TimeStampedModel):
return
default
return
default
def
get_monitor_info
(
self
):
def
get_monitor_info
(
self
):
collected
=
{}
try
:
handler
=
GraphiteHandler
()
except
:
collected
[
"cpu.usage"
]
=
None
collected
[
"memory.usage"
]
=
self
.
ram_size
return
collected
query
=
Query
()
query
=
Query
()
handler
=
GraphiteHandler
()
query
.
set_target
(
self
.
host
.
hostname
+
".circle"
)
query
.
set_target
(
self
.
host
.
hostname
+
".circle"
)
query
.
set_format
(
"json"
)
query
.
set_format
(
"json"
)
query
.
set_relative_start
(
5
,
"minutes"
)
query
.
set_relative_start
(
5
,
"minutes"
)
...
...
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