diff options
author | Ryan Cobb <rcobb@gitlab.com> | 2019-06-05 21:20:40 +0300 |
---|---|---|
committer | Ryan Cobb <rcobb@gitlab.com> | 2019-06-06 22:19:50 +0300 |
commit | 7131ad46c6d2301d9979f2f8ef9cf081264f03a6 (patch) | |
tree | 69712dca33df935c87b559b177313f3fe243d4bb /lib | |
parent | 8cd197a0ddd1398bb84926da11c76dd1abdfa688 (diff) |
Adds sidekiq worker label for ruby metrics
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/metrics/samplers/ruby_sampler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/metrics/samplers/ruby_sampler.rb b/lib/gitlab/metrics/samplers/ruby_sampler.rb index 4d9c43f37e7..17eacbd21d8 100644 --- a/lib/gitlab/metrics/samplers/ruby_sampler.rb +++ b/lib/gitlab/metrics/samplers/ruby_sampler.rb @@ -77,10 +77,10 @@ module Gitlab end def worker_label + return { worker: 'sidekiq' } if Sidekiq.server? return {} unless defined?(Unicorn::Worker) worker_no = ::Prometheus::Client::Support::Unicorn.worker_id - if worker_no { worker: worker_no } else |