Merge branch 'sh-disable-unicorn-sampling-sidekiq' into 'master'

Disable Unicorn sampling in Sidekiq since there are no Unicorn sockets to monitor

See merge request gitlab-org/gitlab-ce!15128
This commit is contained in:
Douwe Maan 2017-11-01 17:03:47 +00:00
commit 6ea9f0a333
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,5 @@
---
title: Disable Unicorn sampling in Sidekiq since there are no Unicorn sockets to monitor
merge_request:
author:
type: performance

View File

@ -123,7 +123,9 @@ def instrument_classes(instrumentation)
end
# rubocop:enable Metrics/AbcSize
Gitlab::Metrics::UnicornSampler.initialize_instance(Settings.monitoring.unicorn_sampler_interval).start
unless Sidekiq.server?
Gitlab::Metrics::UnicornSampler.initialize_instance(Settings.monitoring.unicorn_sampler_interval).start
end
Gitlab::Application.configure do |config|
# 0 should be Sentry to catch errors in this middleware