summaryrefslogtreecommitdiff
path: root/app/views/admin
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2016-01-13 12:29:48 +0100
committerYorick Peterse <yorickpeterse@gmail.com>2016-01-13 12:29:48 +0100
commit23671600150cb022a09a77b8ea56a9465f19a013 (patch)
tree733fec4f17fb538322db0b692585987a4bb60592 /app/views/admin
parent83ad5fa5cbe72f2fe841627ba5152a3847204d12 (diff)
downloadgitlab-ce-23671600150cb022a09a77b8ea56a9465f19a013.tar.gz
Make the metrics sampler interval configurable
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/application_settings/_form.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/admin/application_settings/_form.html.haml b/app/views/admin/application_settings/_form.html.haml
index 81337432ab7..83f6814d822 100644
--- a/app/views/admin/application_settings/_form.html.haml
+++ b/app/views/admin/application_settings/_form.html.haml
@@ -202,6 +202,13 @@
.help-block
A method call is only tracked when it takes longer to complete than
the given amount of milliseconds.
+ .form-group
+ = f.label :metrics_sample_interval, 'Sampler Interval (sec)', class: 'control-label col-sm-2'
+ .col-sm-10
+ = f.number_field :metrics_sample_interval, class: 'form-control'
+ .help-block
+ The sampling interval in seconds. Sampled data includes memory usage,
+ retained Ruby objects, file descriptors and so on.
%fieldset
%legend Spam and Anti-bot Protection