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
Pipeline #48081 passed with stage
in 5 minutes and 11 seconds
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)
......
......@@ -76,5 +76,6 @@ probes:
- probe_jobs
- probe_workers
- probe_retries
- probe_dead
opts:
redis_url: "redis://localhost:6379"
......@@ -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
......
module GitLab
module Monitor
VERSION = "1.4.0".freeze
VERSION = "1.5.0".freeze
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment