Commit a1c9ac41 authored by Stan Hu's avatar Stan Hu

Merge branch 'fix-loading-metrics-gems' into 'master'

Remove metrics group in Gemfile

See merge request gitlab-org/gitlab!65157
parents 8c7788fc a48f1ed3
...@@ -335,13 +335,9 @@ gem 'peek', '~> 1.1' ...@@ -335,13 +335,9 @@ gem 'peek', '~> 1.1'
gem 'snowplow-tracker', '~> 0.6.1' gem 'snowplow-tracker', '~> 0.6.1'
# Metrics # Metrics
group :metrics do gem 'method_source', '~> 1.0', require: false
gem 'method_source', '~> 1.0', require: false gem 'webrick', '~> 1.6.1', require: false
gem 'webrick', '~> 1.6.1', require: false gem 'prometheus-client-mmap', '~> 0.12.0', require: 'prometheus/client'
# Prometheus
gem 'prometheus-client-mmap', '~> 0.12.0'
end
group :development do group :development do
gem 'lefthook', '~> 0.7.0', require: false gem 'lefthook', '~> 0.7.0', require: false
......
# frozen_string_literal: true # frozen_string_literal: true
require 'prometheus/client'
# Keep separate directories for separate processes # Keep separate directories for separate processes
def prometheus_default_multiproc_dir def prometheus_default_multiproc_dir
return unless Rails.env.development? || Rails.env.test? return unless Rails.env.development? || Rails.env.test?
......
# frozen_string_literal: true # frozen_string_literal: true
require 'webrick'
require 'prometheus/client/rack/exporter'
module Gitlab module Gitlab
module Metrics module Metrics
module Exporter module Exporter
......
# frozen_string_literal: true # frozen_string_literal: true
require 'webrick'
require 'prometheus/client/rack/exporter'
module Gitlab module Gitlab
module Metrics module Metrics
module Exporter module Exporter
......
# frozen_string_literal: true # frozen_string_literal: true
require 'webrick'
require 'prometheus/client/rack/exporter'
module Gitlab module Gitlab
module Metrics module Metrics
module Exporter module Exporter
......
# frozen_string_literal: true # frozen_string_literal: true
require 'prometheus/client'
module Gitlab module Gitlab
module Metrics module Metrics
module Prometheus module Prometheus
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment