diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-11-24 01:10:38 +0300 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-11-24 01:33:02 +0300 |
commit | 0ae2d9e68df24f5aeda56e8fb934aa980a3b76c2 (patch) | |
tree | f97615a981b33a86b33bb5b9674bce76e8045069 /config/initializers/7_prometheus_metrics.rb | |
parent | ad185e623b282f622ca3ea983840eed44a664fcb (diff) |
Rename wip to worker_id
Diffstat (limited to 'config/initializers/7_prometheus_metrics.rb')
-rw-r--r-- | config/initializers/7_prometheus_metrics.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config/initializers/7_prometheus_metrics.rb b/config/initializers/7_prometheus_metrics.rb index a9138db585f..43b1e943897 100644 --- a/config/initializers/7_prometheus_metrics.rb +++ b/config/initializers/7_prometheus_metrics.rb @@ -12,11 +12,11 @@ Prometheus::Client.configure do |config| end config.pid_provider = -> do - wid = Prometheus::Client::Support::Unicorn.worker_id - if wid.nil? + worker_id = Prometheus::Client::Support::Unicorn.worker_id + if worker_id.nil? "process_pid_#{Process.pid}" else - "worker_id_#{wid}" + "worker_id_#{worker_id}" end end end |