Rename wip to worker_id
This commit is contained in:
parent
ad185e623b
commit
0ae2d9e68d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue