diff options
author | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-12-07 17:47:23 +0100 |
---|---|---|
committer | Pawel Chojnacki <pawel@chojnacki.ws> | 2017-12-07 17:47:23 +0100 |
commit | ee22a47d629fb13a52100921761f833acd80dbd9 (patch) | |
tree | 3cacec44085190334e2a7eef67af9f2125340344 /config | |
parent | 83e623f65cc6c5cc61dd5431cf028cfb2a515657 (diff) | |
download | gitlab-ce-ee22a47d629fb13a52100921761f833acd80dbd9.tar.gz |
Update prometheus-client-mmap gem to highly optimized version
+ change string concatenation to help with GC pressure.
+ fix metric producing incompatible label sets
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/7_prometheus_metrics.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/config/initializers/7_prometheus_metrics.rb b/config/initializers/7_prometheus_metrics.rb index 43b1e943897..eb7959e4da6 100644 --- a/config/initializers/7_prometheus_metrics.rb +++ b/config/initializers/7_prometheus_metrics.rb @@ -11,14 +11,7 @@ Prometheus::Client.configure do |config| config.multiprocess_files_dir ||= Rails.root.join('tmp/prometheus_multiproc_dir') end - config.pid_provider = -> do - worker_id = Prometheus::Client::Support::Unicorn.worker_id - if worker_id.nil? - "process_pid_#{Process.pid}" - else - "worker_id_#{worker_id}" - end - end + config.pid_provider = Prometheus::Client::Support::Unicorn.method(:worker_pid_provider) end Gitlab::Application.configure do |config| |