BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
d2985eb5
Commit
d2985eb5
authored
Nov 23, 2016
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Grapify the sidekiq metrics API
parent
35d6ea4f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
32 deletions
+4
-32
sidekiq_metrics.rb
lib/api/sidekiq_metrics.rb
+4
-32
No files found.
lib/api/sidekiq_metrics.rb
View file @
d2985eb5
...
@@ -39,50 +39,22 @@ module API
...
@@ -39,50 +39,22 @@ module API
end
end
end
end
# Get Sidekiq Queue metrics
desc
'Get the Sidekiq queue metrics'
#
# Parameters:
# None
#
# Example:
# GET /sidekiq/queue_metrics
#
get
'sidekiq/queue_metrics'
do
get
'sidekiq/queue_metrics'
do
{
queues:
queue_metrics
}
{
queues:
queue_metrics
}
end
end
# Get Sidekiq Process metrics
desc
'Get the Sidekiq process metrics'
#
# Parameters:
# None
#
# Example:
# GET /sidekiq/process_metrics
#
get
'sidekiq/process_metrics'
do
get
'sidekiq/process_metrics'
do
{
processes:
process_metrics
}
{
processes:
process_metrics
}
end
end
# Get Sidekiq Job statistics
desc
'Get the Sidekiq job statistics'
#
# Parameters:
# None
#
# Example:
# GET /sidekiq/job_stats
#
get
'sidekiq/job_stats'
do
get
'sidekiq/job_stats'
do
{
jobs:
job_stats
}
{
jobs:
job_stats
}
end
end
# Get Sidekiq Compound metrics. Includes all previous metrics
desc
'Get the Sidekiq Compound metrics. Includes queue, process, and job statistics'
#
# Parameters:
# None
#
# Example:
# GET /sidekiq/compound_metrics
#
get
'sidekiq/compound_metrics'
do
get
'sidekiq/compound_metrics'
do
{
queues:
queue_metrics
,
processes:
process_metrics
,
jobs:
job_stats
}
{
queues:
queue_metrics
,
processes:
process_metrics
,
jobs:
job_stats
}
end
end
...
...
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