Skip to content
Snippets Groups Projects
Commit e2730895 authored by Ahmad Sherif's avatar Ahmad Sherif
Browse files

Merge branch 'feature/sidekiq-dead-count' into 'master'

Collect Sidekiq dead jobs count

Closes #23

See merge request !49
parents 4c034606 ddcf7501
No related branches found
No related tags found
1 merge request!49Collect Sidekiq dead jobs count
Pipeline #
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)
Loading
Loading
Loading
Loading
@@ -76,5 +76,6 @@ probes:
- probe_jobs
- probe_workers
- probe_retries
- probe_dead
opts:
redis_url: "redis://localhost:6379"
Loading
Loading
@@ -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
Loading
Loading
module GitLab
module Monitor
VERSION = "1.4.0".freeze
VERSION = "1.5.0".freeze
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment