Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_prometheus.html.haml « application_settings « admin « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 08befa59952c4a18d13cc3c01484a5bed738b029 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
= form_for @application_setting, url: metrics_and_profiling_admin_application_settings_path(anchor: 'js-prometheus-settings'), html: { class: 'fieldset-form' } do |f|
  = form_errors(@application_setting)

  %fieldset
    .form-group
      .form-check
        = f.check_box :prometheus_metrics_enabled, class: 'form-check-input'
        = f.label :prometheus_metrics_enabled, class: 'form-check-label' do
          = _("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.')
          = link_to _('Learn More.'), help_page_path('administration/monitoring/prometheus/gitlab_metrics.md'), target: '_blank', rel: 'noopener noreferrer'
        - unless Gitlab::Metrics.metrics_folder_present?
          .form-text.text-muted
            %strong.cred= _("WARNING:")
            = _("Environment variable %{code_start}%{environment_variable}%{code_end} does not exist or is not pointing to a valid directory.").html_safe % { environment_variable: prometheus_multiproc_dir, code_start: '<code>'.html_safe, code_end: '</code>'.html_safe }
            = link_to sprite_icon('question-o'), help_page_path('administration/monitoring/prometheus/gitlab_metrics', anchor: 'metrics-shared-directory')
    .form-group
      = f.label :metrics_method_call_threshold, _('Method call threshold (ms)'), class: 'label-bold'
      = f.number_field :metrics_method_call_threshold, class: 'form-control gl-form-input'
      .form-text.text-muted
        Only track method calls that take longer to complete than the given duration.

  = f.submit _('Save changes'), class: "gl-button btn btn-confirm"