Remove worker label from puma terminations metric
This commit is contained in:
parent
c90effd84a
commit
35fb27db27
|
@ -15,9 +15,7 @@ module Gitlab
|
|||
private
|
||||
|
||||
def log_termination(worker)
|
||||
labels = { worker: "worker_#{worker.index}" }
|
||||
|
||||
@counter.increment(labels)
|
||||
@counter.increment
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -17,9 +17,7 @@ describe Gitlab::Cluster::PumaWorkerKillerObserver do
|
|||
it 'increments timeout counter' do
|
||||
worker = double(index: 0)
|
||||
|
||||
expect(counter)
|
||||
.to receive(:increment)
|
||||
.with({ worker: 'worker_0' })
|
||||
expect(counter).to receive(:increment)
|
||||
|
||||
subject.callback.call(worker)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue