diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2016-01-13 14:29:48 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2016-01-13 14:29:48 +0300 |
commit | 23671600150cb022a09a77b8ea56a9465f19a013 (patch) | |
tree | 733fec4f17fb538322db0b692585987a4bb60592 /lib/gitlab/metrics.rb | |
parent | 83ad5fa5cbe72f2fe841627ba5152a3847204d12 (diff) |
Make the metrics sampler interval configurable
Diffstat (limited to 'lib/gitlab/metrics.rb')
-rw-r--r-- | lib/gitlab/metrics.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gitlab/metrics.rb b/lib/gitlab/metrics.rb index cdf7c168ff2..88a265c6af2 100644 --- a/lib/gitlab/metrics.rb +++ b/lib/gitlab/metrics.rb @@ -13,7 +13,8 @@ module Gitlab timeout: current_application_settings[:metrics_timeout], method_call_threshold: current_application_settings[:metrics_method_call_threshold], host: current_application_settings[:metrics_host], - port: current_application_settings[:metrics_port] + port: current_application_settings[:metrics_port], + sample_interval: current_application_settings[:metrics_sample_interval] || 15 } end |