config/initializers/7_prometheus_metrics.rb
def prometheus_default_multiproc_dir
  return unless Rails.env.development? || Rails.env.test?

  if Gitlab::Runtime.sidekiq?
    Rails.root.join('tmp/prometheus_multiproc_dir/sidekiq')
  elsif Gitlab::Runtime.puma?
    Rails.root.join('tmp/prometheus_multiproc_dir/puma')
  else
    Rails.root.join('tmp/prometheus_multiproc_dir')
  end
end
# Keep separate directories for separate processes
Keep separate directories for separate processes
Keep separate directories for separate processes
def prometheus_default_multiproc_dir
  return unless Rails.env.development? || Rails.env.test?
  if Gitlab::Runtime.sidekiq?
    Rails.root.join('tmp/prometheus_multiproc_dir/sidekiq')
  elsif Gitlab::Runtime.puma?
    Rails.root.join('tmp/prometheus_multiproc_dir/puma')
  else
    Rails.root.join('tmp/prometheus_multiproc_dir')
  end
end
def prometheus_default_multiproc_dir return unless Rails . env . development? || Rails . env . test? if Gitlab :: Runtime . sidekiq? Rails . root . join ( 'tmp/prometheus_multiproc_dir/sidekiq' ) elsif Gitlab :: Runtime . puma? Rails . root . join ( 'tmp/prometheus_multiproc_dir/puma' ) else Rails . root . join ( 'tmp/prometheus_multiproc_dir' ) end end
Keep separate directories for separate processes
Keep separate directories for separate processes