Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
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
da3f97fa
authored
Feb 03, 2014
by
Gregory Nagy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Naming convention
parent
0dd53d40
Hide 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):
def
get_monitor_info
(
self
):
query
=
Query
()
handler
=
GraphiteHandler
()
query
.
set
T
arget
(
self
.
host
.
hostname
+
".circle"
)
query
.
set
F
ormat
(
"json"
)
query
.
set
RelativeS
tart
(
5
,
"minutes"
)
query
.
set
_t
arget
(
self
.
host
.
hostname
+
".circle"
)
query
.
set
_f
ormat
(
"json"
)
query
.
set
_relative_s
tart
(
5
,
"minutes"
)
metrics
=
[
"cpu.usage"
,
"memory.usage"
,
"network.bytes_sent"
,
"network.bytes_received"
]
collected
=
{}
for
metric
in
metrics
:
query
.
set
M
etric
(
metric
)
query
.
set
_m
etric
(
metric
)
query
.
generate
()
handler
.
put
(
query
)
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