提交 35fb27db 编写于 作者: A Aleksei Lipniagov

Remove worker label from puma terminations metric

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册