summaryrefslogtreecommitdiff
path: root/app/views/admin/application_settings/_prometheus.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-03-27 17:12:36 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-03-27 18:13:16 +0300
commit42040e61ec8b8a4662c3d74d8769f39bee3563f5 (patch)
tree725aed0b6b92368ffa1cd507780b4a925aa688b8 /app/views/admin/application_settings/_prometheus.html.haml
parent7c626d2d0d9c919ed2086fdd34e1ad6137b86647 (diff)
downloadgitlab-ce-42040e61ec8b8a4662c3d74d8769f39bee3563f5.tar.gz
Move ci/cd, influx and prometheus app settings to expandable sections
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/admin/application_settings/_prometheus.html.haml')
-rw-r--r--app/views/admin/application_settings/_prometheus.html.haml28
1 files changed, 28 insertions, 0 deletions
diff --git a/app/views/admin/application_settings/_prometheus.html.haml b/app/views/admin/application_settings/_prometheus.html.haml
new file mode 100644
index 00000000000..48745db2991
--- /dev/null
+++ b/app/views/admin/application_settings/_prometheus.html.haml
@@ -0,0 +1,28 @@
+= form_for @application_setting, url: admin_application_settings_path, html: { class: 'form-horizontal fieldset-form' } do |f|
+ = form_errors(@application_setting)
+
+ %fieldset
+ %p
+ Enable a Prometheus metrics endpoint at
+ %code= metrics_path
+ to expose a variety of statistics on the health and performance of GitLab. Additional information on authenticating and connecting to the metrics endpoint is available
+ = link_to 'here', admin_health_check_path
+ \. This setting requires a
+ = link_to 'restart', help_page_path('administration/restart_gitlab')
+ to take effect.
+ = link_to icon('question-circle'), help_page_path('administration/monitoring/prometheus/index')
+ .form-group
+ .col-sm-offset-2.col-sm-10
+ .checkbox
+ = f.label :prometheus_metrics_enabled do
+ = f.check_box :prometheus_metrics_enabled
+ Enable Prometheus Metrics
+ - unless Gitlab::Metrics.metrics_folder_present?
+ .help-block
+ %strong.cred WARNING:
+ Environment variable
+ %code prometheus_multiproc_dir
+ does not exist or is not pointing to a valid directory.
+ = link_to icon('question-circle'), help_page_path('administration/monitoring/prometheus/gitlab_metrics', anchor: 'metrics-shared-directory')
+
+ = f.submit 'Save changes', class: "btn btn-success"