Unverified Commit ed5d60d8 authored by Ben Kochie's avatar Ben Kochie
Browse files

Add metric for sidekiq paused queues

Add a boolean metric for the `paused?`[0] state of each queue.

[0]: https://www.rubydoc.info/github/mperham/sidekiq/Sidekiq/Queue
parent e130002e
Pipeline #98380 passed with stage
in 47 seconds
......@@ -32,7 +32,7 @@ metrics.
* Age -- `process_age_seconds`
* Count -- `process_count`
* Memory usage -- `process_memory_bytes`
1. [Sidekiq](lib/gitlab_monitor/sidekiq.rb) -- `sidekiq_queue_size`,
1. [Sidekiq](lib/gitlab_monitor/sidekiq.rb) -- `sidekiq_queue_size`, `sidekiq_queue_paused`,
`sidekiq_queue_latency_seconds`, `sidekiq_enqueued_jobs`, `sidekiq_dead_jobs`,
`sidekiq_running_jobs`, `sidekiq_to_be_retried_jobs`
......
......@@ -32,6 +32,7 @@ module GitLab
Sidekiq::Queue.all.each do |queue|
@metrics.add("sidekiq_queue_size", queue.size, name: queue.name)
@metrics.add("sidekiq_queue_latency_seconds", queue.latency, name: queue.name)
@metrics.add("sidekiq_queue_paused", queue.paused? ? 1 : 0, name: queue.name)
end
self
......
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