summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorRyan Cobb <rcobb@gitlab.com>2019-07-29 11:53:12 +0000
committerKamil TrzciƄski <ayufan@ayufan.eu>2019-07-29 11:53:12 +0000
commitcfea48dffd04918e4d457ed92ff987b8246ef4ec (patch)
treedbcab81224b969957e2a852d6db65497e3a9fd44 /config
parent3bb3ac3d53398a8e2e5d2de95ee2a226db84efe2 (diff)
downloadgitlab-ce-cfea48dffd04918e4d457ed92ff987b8246ef4ec.tar.gz
Adds direct monitoring for sidekiq metrics
This adds diirect monitoring for sidekiq metrics. This is done via sidekiq middleware and a sampler to pull from sidekiqs api.
Diffstat (limited to 'config')
-rw-r--r--config/initializers/sidekiq.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/config/initializers/sidekiq.rb b/config/initializers/sidekiq.rb
index 166fb9b6916..9f88fb9895b 100644
--- a/config/initializers/sidekiq.rb
+++ b/config/initializers/sidekiq.rb
@@ -33,6 +33,7 @@ Sidekiq.configure_server do |config|
config.redis = queues_config_hash
config.server_middleware do |chain|
+ chain.add Gitlab::SidekiqMiddleware::Metrics if Settings.monitoring.sidekiq_exporter
chain.add Gitlab::SidekiqMiddleware::ArgumentsLogger if ENV['SIDEKIQ_LOG_ARGUMENTS'] && !enable_json_logs
chain.add Gitlab::SidekiqMiddleware::MemoryKiller if ENV['SIDEKIQ_MEMORY_KILLER_MAX_RSS']
chain.add Gitlab::SidekiqMiddleware::RequestStoreMiddleware unless ENV['SIDEKIQ_REQUEST_STORE'] == '0'