Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
50b6f490
Commit
50b6f490
authored
Nov 18, 2019
by
Marco Peterseil
Committed by
Lin Jen-Shin
Nov 18, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add dead jobs size to sidekiq api metrics
parent
909ea6c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
changelogs/unreleased/add-dead-jobs-to-api-sidekiq-metrics.yml
...elogs/unreleased/add-dead-jobs-to-api-sidekiq-metrics.yml
+5
-0
doc/api/sidekiq_metrics.md
doc/api/sidekiq_metrics.md
+4
-2
lib/api/sidekiq_metrics.rb
lib/api/sidekiq_metrics.rb
+2
-1
No files found.
changelogs/unreleased/add-dead-jobs-to-api-sidekiq-metrics.yml
0 → 100644
View file @
50b6f490
---
title
:
Add dead jobs to Sidekiq metrics API
merge_request
:
19350
author
:
Marco Peterseil
type
:
added
doc/api/sidekiq_metrics.md
View file @
50b6f490
...
...
@@ -92,7 +92,8 @@ Example response:
"jobs"
:
{
"processed"
:
2
,
"failed"
:
0
,
"enqueued"
:
0
"enqueued"
:
0
,
"dead"
:
0
}
}
```
...
...
@@ -145,7 +146,8 @@ Example response:
"jobs"
:
{
"processed"
:
2
,
"failed"
:
0
,
"enqueued"
:
0
"enqueued"
:
0
,
"dead"
:
0
}
}
```
lib/api/sidekiq_metrics.rb
View file @
50b6f490
...
...
@@ -36,7 +36,8 @@ module API
{
processed:
stats
.
processed
,
failed:
stats
.
failed
,
enqueued:
stats
.
enqueued
enqueued:
stats
.
enqueued
,
dead:
stats
.
dead_size
}
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