Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
gitlab-org
gitlab-exporter
Commits
ddcf7501
Commit
ddcf7501
authored
Apr 27, 2017
by
Ahmad Sherif
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collect Sidekiq dead jobs count
parent
4c034606
Pipeline
#182293
passed with stage
in 52 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
2 deletions
+11
-2
Gemfile.lock
Gemfile.lock
+1
-1
config/gitlab-monitor.yml.example
config/gitlab-monitor.yml.example
+1
-0
lib/gitlab_monitor/sidekiq.rb
lib/gitlab_monitor/sidekiq.rb
+8
-0
lib/gitlab_monitor/version.rb
lib/gitlab_monitor/version.rb
+1
-1
No files found.
Gemfile.lock
View file @
ddcf7501
PATH
remote: .
specs:
gitlab-monitor (1.
4
.0)
gitlab-monitor (1.
5
.0)
pg (~> 0.18.4)
quantile (~> 0.2.0)
redis-namespace (~> 1.5.2)
...
...
config/gitlab-monitor.yml.example
View file @
ddcf7501
...
...
@@ -76,5 +76,6 @@ probes:
- probe_jobs
- probe_workers
- probe_retries
- probe_dead
opts:
redis_url: "redis://localhost:6379"
lib/gitlab_monitor/sidekiq.rb
View file @
ddcf7501
...
...
@@ -95,6 +95,14 @@ module GitLab
self
end
def
probe_dead
return
self
unless
connected?
@metrics
.
add
(
"sidekiq_dead_jobs_total"
,
Sidekiq
::
Stats
.
new
.
dead_size
)
self
end
def
write_to
(
target
)
target
.
write
(
@metrics
.
to_s
)
end
...
...
lib/gitlab_monitor/version.rb
View file @
ddcf7501
module
GitLab
module
Monitor
VERSION
=
"1.
4
.0"
.
freeze
VERSION
=
"1.
5
.0"
.
freeze
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