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 ...@@ -15,9 +15,7 @@ module Gitlab
private private
def log_termination(worker) def log_termination(worker)
labels = { worker: "worker_#{worker.index}" } @counter.increment
@counter.increment(labels)
end end
end end
end end
......
...@@ -17,9 +17,7 @@ describe Gitlab::Cluster::PumaWorkerKillerObserver do ...@@ -17,9 +17,7 @@ describe Gitlab::Cluster::PumaWorkerKillerObserver do
it 'increments timeout counter' do it 'increments timeout counter' do
worker = double(index: 0) worker = double(index: 0)
expect(counter) expect(counter).to receive(:increment)
.to receive(:increment)
.with({ worker: 'worker_0' })
subject.callback.call(worker) subject.callback.call(worker)
end 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