Unverified Commit 294b1c71 authored by Sean McGivern's avatar Sean McGivern
Browse files

Add description to sidekiq_enqueued_jobs metric

parent 6724873b
...@@ -109,6 +109,9 @@ module GitLab ...@@ -109,6 +109,9 @@ module GitLab
# DO NOT USE this and probe_jobs together, as they export the same # DO NOT USE this and probe_jobs together, as they export the same
# metric (sidekiq_enqueued_jobs). # metric (sidekiq_enqueued_jobs).
def probe_jobs_limit # rubocop:disable Metrics/MethodLength def probe_jobs_limit # rubocop:disable Metrics/MethodLength
@metrics.describe("sidekiq_enqueued_jobs",
"Total number of jobs enqueued by class name. Only inspects the first #{PROBE_JOBS_LIMIT} jobs per queue.") # rubocop:disable Layout/LineLength
with_sidekiq do with_sidekiq do
job_stats = Hash.new(0) job_stats = Hash.new(0)
......
Supports Markdown
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