debian-mirror-gitlab/app/views/admin/application_settings/_prometheus.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
1.7 KiB
Text
Raw Normal View History

2019-09-30 21:07:59 +05:30
= form_for @application_setting, url: metrics_and_profiling_admin_application_settings_path(anchor: 'js-prometheus-settings'), html: { class: 'fieldset-form' } do |f|
2018-05-09 12:01:36 +05:30
= form_errors(@application_setting)
%fieldset
.form-group
2018-11-08 19:23:39 +05:30
.form-check
= f.check_box :prometheus_metrics_enabled, class: 'form-check-input'
= f.label :prometheus_metrics_enabled, class: 'form-check-label' do
2021-10-27 15:23:28 +05:30
= _("Enable health and performance metrics endpoint")
.form-text.text-muted
= _('Enable a Prometheus endpoint that exposes health and performance statistics. The Health Check menu item appears in the Monitoring section of the Admin Area. Restart required.')
2022-03-02 08:16:31 +05:30
= link_to _('Learn More.'), help_page_path('administration/monitoring/prometheus/gitlab_metrics.md'), target: '_blank', rel: 'noopener noreferrer'
2018-11-08 19:23:39 +05:30
- unless Gitlab::Metrics.metrics_folder_present?
.form-text.text-muted
2021-06-08 01:23:25 +05:30
%strong.cred= _("WARNING:")
2022-05-07 20:08:51 +05:30
= _("Environment variable %{environment_variable} does not exist or is not pointing to a valid directory.").html_safe % { environment_variable: '<code>prometheus_multiproc_dir</code>'.html_safe }
2020-11-24 15:15:51 +05:30
= link_to sprite_icon('question-o'), help_page_path('administration/monitoring/prometheus/gitlab_metrics', anchor: 'metrics-shared-directory')
2020-05-24 23:13:21 +05:30
.form-group
2021-10-27 15:23:28 +05:30
= f.label :metrics_method_call_threshold, _('Method call threshold (ms)'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.number_field :metrics_method_call_threshold, class: 'form-control gl-form-input'
2020-05-24 23:13:21 +05:30
.form-text.text-muted
2021-10-27 15:23:28 +05:30
Only track method calls that take longer to complete than the given duration.
2018-05-09 12:01:36 +05:30
2021-06-08 01:23:25 +05:30
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"