Skip to content
Snippets Groups Projects
Commit 35fb27db authored by Aleksei Lipniagov's avatar Aleksei Lipniagov
Browse files

Remove worker label from puma terminations metric

parent c90effd8
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -15,9 +15,7 @@ module Gitlab
private
 
def log_termination(worker)
labels = { worker: "worker_#{worker.index}" }
@counter.increment(labels)
@counter.increment
end
end
end
Loading
Loading
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment