Remove worker label from puma terminations metric

This commit is contained in:
Aleksei Lipniagov 2019-08-12 13:16:25 +03:00
parent c90effd84a
commit 35fb27db27
2 changed files with 2 additions and 6 deletions

View File

@ -15,9 +15,7 @@ module Gitlab
private
def log_termination(worker)
labels = { worker: "worker_#{worker.index}" }
@counter.increment(labels)
@counter.increment
end
end
end

View File

@ -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