Commit 1eca4881 authored by Pawel Chojnacki's avatar Pawel Chojnacki

Merge prometheus unicorn sampler settigns within monitoring settings

parent 6d60e265
...@@ -543,14 +543,12 @@ production: &base ...@@ -543,14 +543,12 @@ production: &base
# enabled: true # enabled: true
# host: localhost # host: localhost
# port: 3808 # port: 3808
prometheus:
# Time between sampling of unicorn socket metrics, in seconds
# unicorn_sampler_interval: 10
## Monitoring ## Monitoring
# Built in monitoring settings # Built in monitoring settings
monitoring: monitoring:
# Time between sampling of unicorn socket metrics, in seconds
# unicorn_sampler_interval: 10
# IP whitelist to access monitoring endpoints # IP whitelist to access monitoring endpoints
ip_whitelist: ip_whitelist:
- 127.0.0.0/8 - 127.0.0.0/8
......
...@@ -499,12 +499,7 @@ Settings.webpack.dev_server['port'] ||= 3808 ...@@ -499,12 +499,7 @@ Settings.webpack.dev_server['port'] ||= 3808
# #
Settings['monitoring'] ||= Settingslogic.new({}) Settings['monitoring'] ||= Settingslogic.new({})
Settings.monitoring['ip_whitelist'] ||= ['127.0.0.1/8'] Settings.monitoring['ip_whitelist'] ||= ['127.0.0.1/8']
Settings.monitoring['unicorn_sampler_interval'] ||= 10
#
# Prometheus metrics settings
#
Settings['prometheus'] ||= Settingslogic.new({})
Settings.prometheus['unicorn_sampler_interval'] ||= 10
# #
# Testing settings # Testing settings
......
...@@ -119,7 +119,7 @@ def instrument_classes(instrumentation) ...@@ -119,7 +119,7 @@ def instrument_classes(instrumentation)
end end
# rubocop:enable Metrics/AbcSize # rubocop:enable Metrics/AbcSize
Gitlab::Metrics::UnicornSampler.initialize_instance(Settings.prometheus.unicorn_sampler_interval).start Gitlab::Metrics::UnicornSampler.initialize_instance(Settings.monitoring.unicorn_sampler_interval).start
Gitlab::Application.configure do |config| Gitlab::Application.configure do |config|
# 0 should be Sentry to catch errors in this middleware # 0 should be Sentry to catch errors in this middleware
......
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