diff options
Diffstat (limited to 'lib/prometheus/pid_provider.rb')
-rw-r--r-- | lib/prometheus/pid_provider.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/prometheus/pid_provider.rb b/lib/prometheus/pid_provider.rb index 32beeb0d31e..d2563b4c806 100644 --- a/lib/prometheus/pid_provider.rb +++ b/lib/prometheus/pid_provider.rb @@ -7,8 +7,6 @@ module Prometheus def worker_id if Gitlab::Runtime.sidekiq? sidekiq_worker_id - elsif Gitlab::Runtime.unicorn? - unicorn_worker_id elsif Gitlab::Runtime.puma? puma_worker_id else @@ -26,16 +24,6 @@ module Prometheus end end - def unicorn_worker_id - if matches = process_name.match(/unicorn.*worker\[([0-9]+)\]/) - "unicorn_#{matches[1]}" - elsif process_name =~ /unicorn/ - "unicorn_master" - else - unknown_process_id - end - end - def puma_worker_id if matches = process_name.match(/puma.*cluster worker ([0-9]+):/) "puma_#{matches[1]}" |