2018-04-12 20:11:22 +00:00
= form_for @application_setting, url: admin_application_settings_path, html: { class: 'fieldset-form' } do |f|
2018-03-27 14:12:36 +00:00
= 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')
2018-04-12 20:11:22 +00:00
.form-group.row
2018-04-13 17:49:32 +00:00
.offset-sm-2.col-sm-10
2018-04-11 18:05:57 +00:00
.form-check
2018-05-31 19:20:46 +00:00
= f.check_box :prometheus_metrics_enabled, class: 'form-check-input'
= f.label :prometheus_metrics_enabled, class: 'form-check-label' do
2018-03-27 14:12:36 +00:00
Enable Prometheus Metrics
- unless Gitlab::Metrics.metrics_folder_present?
2018-04-11 18:26:37 +00:00
.form-text.text-muted
2018-03-27 14:12:36 +00:00
%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"