Commit 35fb27db authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Remove worker label from puma terminations metric

parent c90effd8
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment