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
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
f06fe9b9
authored
Jul 02, 2014
by
Kálmán Viktor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
monitor: agent and net queue
parent
3debd325
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
circle/monitor/tasks/local_periodic_tasks.py
+10
-1
No files found.
circle/monitor/tasks/local_periodic_tasks.py
View file @
f06fe9b9
...
...
@@ -60,12 +60,21 @@ def check_celery_queues():
metrics
.
append
(
graphite_string
(
"circle"
,
n
.
host
.
hostname
,
"vm-"
+
s
,
is_queue_alive
,
time
()))
is_net_queue_alive
=
check_queue
(
n
.
host
.
hostname
,
"net"
,
"fast"
)
metrics
.
append
(
graphite_string
(
"circle"
,
n
.
host
.
hostname
,
"net-fast"
,
is_net_queue_alive
,
time
()))
is_agent_queue_alive
=
check_queue
(
n
.
host
.
hostname
,
"agent"
)
metrics
.
append
(
graphite_string
(
"circle"
,
n
.
host
.
hostname
,
"agent"
,
is_agent_queue_alive
,
time
()))
for
ds
in
DataStore
.
objects
.
all
():
for
s
in
[
"fast"
,
"slow"
]:
is_queue_alive
=
check_queue
(
ds
.
hostname
,
"vm"
,
s
)
metrics
.
append
(
graphite_string
(
"storage"
,
ds
.
hostname
,
"vm-"
+
s
,
is_queue_alive
,
time
()))
"storage-"
+
s
,
is_queue_alive
,
time
()))
Client
()
.
send
(
metrics
)
...
...
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