Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
09a00278
Unverified
Commit
09a00278
authored
Jan 11, 2018
by
Joseph Mulloy
Committed by
GitHub
Jan 11, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4278 from edx/jdmulloy/ops2545/fix_redis_script
Jdmulloy/ops2545/fix redis script
parents
3e2bcc07
fe8a382b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
util/jenkins/check-celery-queues.py
+3
-2
No files found.
util/jenkins/check-celery-queues.py
View file @
09a00278
...
...
@@ -73,7 +73,7 @@ class CwBotoWrapper(object):
help
=
'Maximum number of CloudWatch metrics to publish'
)
@click.option
(
'--threshold'
,
default
=
50
,
help
=
'Maximum queue length before alarm notification is sent'
)
@click.option
(
'--sns-arn'
,
'-s'
,
help
=
'ARN for SNS alert topic'
)
@click.option
(
'--sns-arn'
,
'-s'
,
help
=
'ARN for SNS alert topic'
,
required
=
True
)
def
check_queues
(
host
,
port
,
environment
,
deploy
,
max_metrics
,
threshold
,
sns_arn
):
timeout
=
1
...
...
@@ -117,7 +117,8 @@ def check_queues(host, port, environment, deploy, max_metrics, threshold,
'Value'
:
redis_client
.
llen
(
queue
)
})
cloudwatch
.
put_metric_data
(
Namespace
=
namespace
,
MetricData
=
metric_data
)
if
len
(
metric_data
)
>
0
:
cloudwatch
.
put_metric_data
(
Namespace
=
namespace
,
MetricData
=
metric_data
)
for
queue
in
queues
:
dimensions
=
[{
'Name'
:
dimension
,
'Value'
:
queue
}]
...
...
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