Commit 1e549fc2 authored by Russell Dickenson's avatar Russell Dickenson Committed by Phil Hughes

Edit Prometheus UI text

parent 60b95c95
...@@ -2,26 +2,23 @@ ...@@ -2,26 +2,23 @@
= form_errors(@application_setting) = form_errors(@application_setting)
%fieldset %fieldset
%p
- link_to_restart = link_to(_('restart'), help_page_path('administration/restart_gitlab'))
= _('Enable a Prometheus metrics endpoint at %{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}.').html_safe % { metrics_path: "<code>#{metrics_path}</code>".html_safe, link: link_to(_('here'), admin_health_check_path) }
= _('This setting requires a %{link_to_restart} to take effect.').html_safe % { link_to_restart: link_to_restart }
= link_to sprite_icon('question-o'), help_page_path('administration/monitoring/prometheus/index')
.form-group .form-group
.form-check .form-check
= f.check_box :prometheus_metrics_enabled, class: 'form-check-input' = f.check_box :prometheus_metrics_enabled, class: 'form-check-input'
= f.label :prometheus_metrics_enabled, class: 'form-check-label' do = f.label :prometheus_metrics_enabled, class: 'form-check-label' do
= _("Enable Prometheus Metrics") = _("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'
- unless Gitlab::Metrics.metrics_folder_present? - unless Gitlab::Metrics.metrics_folder_present?
.form-text.text-muted .form-text.text-muted
%strong.cred= _("WARNING:") %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 } = _("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') = link_to sprite_icon('question-o'), help_page_path('administration/monitoring/prometheus/gitlab_metrics', anchor: 'metrics-shared-directory')
.form-group .form-group
= f.label :metrics_method_call_threshold, _('Method Call Threshold (ms)'), class: 'label-bold' = 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' = f.number_field :metrics_method_call_threshold, class: 'form-control gl-form-input'
.form-text.text-muted .form-text.text-muted
A method call is only tracked when it takes longer to complete than Only track method calls that take longer to complete than the given duration.
the given amount of milliseconds.
= f.submit _('Save changes'), class: "gl-button btn btn-confirm" = f.submit _('Save changes'), class: "gl-button btn btn-confirm"
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } %button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
= expanded_by_default? ? _('Collapse') : _('Expand') = expanded_by_default? ? _('Collapse') : _('Expand')
%p %p
= _('Enable and configure Prometheus metrics.') = _('Monitor the health and performance of GitLab with Prometheus.')
.settings-content .settings-content
= render 'prometheus' = render 'prometheus'
......
...@@ -8,10 +8,10 @@ info: To determine the technical writer assigned to the Stage/Group associated w ...@@ -8,10 +8,10 @@ info: To determine the technical writer assigned to the Stage/Group associated w
To enable the GitLab Prometheus metrics: To enable the GitLab Prometheus metrics:
1. Log into GitLab as a user with [administrator permissions](../../../user/permissions.md). 1. Log in to GitLab as a user with [administrator permissions](../../../user/permissions.md).
1. On the top bar, select **Menu >** **{admin}** **Admin**. 1. On the top bar, select **Menu >** **{admin}** **Admin**.
1. On the left sidebar, select **Settings > Metrics and profiling**. 1. On the left sidebar, select **Settings > Metrics and profiling**.
1. Find the **Metrics - Prometheus** section, and click **Enable Prometheus Metrics**. 1. Find the **Metrics - Prometheus** section, and select **Add link to Prometheus**.
1. [Restart GitLab](../../restart_gitlab.md#omnibus-gitlab-restart) for the changes to take effect. 1. [Restart GitLab](../../restart_gitlab.md#omnibus-gitlab-restart) for the changes to take effect.
For installations from source you must configure it yourself. For installations from source you must configure it yourself.
......
...@@ -12088,9 +12088,6 @@ msgstr "" ...@@ -12088,9 +12088,6 @@ msgstr ""
msgid "Enable PlantUML" msgid "Enable PlantUML"
msgstr "" msgstr ""
msgid "Enable Prometheus Metrics"
msgstr ""
msgid "Enable Pseudonymizer data collection" msgid "Enable Pseudonymizer data collection"
msgstr "" msgstr ""
...@@ -12112,7 +12109,7 @@ msgstr "" ...@@ -12112,7 +12109,7 @@ msgstr ""
msgid "Enable What's new: Current tier only" msgid "Enable What's new: Current tier only"
msgstr "" msgstr ""
msgid "Enable a Prometheus metrics endpoint at %{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}." msgid "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."
msgstr "" msgstr ""
msgid "Enable access to the Performance Bar" msgid "Enable access to the Performance Bar"
...@@ -12121,9 +12118,6 @@ msgstr "" ...@@ -12121,9 +12118,6 @@ msgstr ""
msgid "Enable access to the Performance Bar for a given group." msgid "Enable access to the Performance Bar for a given group."
msgstr "" msgstr ""
msgid "Enable and configure Prometheus metrics."
msgstr ""
msgid "Enable and disable Service Desk. Some additional configuration might be required. %{link_start}Learn more%{link_end}." msgid "Enable and disable Service Desk. Some additional configuration might be required. %{link_start}Learn more%{link_end}."
msgstr "" msgstr ""
...@@ -12157,6 +12151,9 @@ msgstr "" ...@@ -12157,6 +12151,9 @@ msgstr ""
msgid "Enable header and footer in emails" msgid "Enable header and footer in emails"
msgstr "" msgstr ""
msgid "Enable health and performance metrics endpoint"
msgstr ""
msgid "Enable in-product marketing emails" msgid "Enable in-product marketing emails"
msgstr "" msgstr ""
...@@ -19230,6 +19227,9 @@ msgstr "" ...@@ -19230,6 +19227,9 @@ msgstr ""
msgid "Learn More" msgid "Learn More"
msgstr "" msgstr ""
msgid "Learn More."
msgstr ""
msgid "Learn how to %{link_start}contribute to the built-in templates%{link_end}" msgid "Learn how to %{link_start}contribute to the built-in templates%{link_end}"
msgstr "" msgstr ""
...@@ -20693,7 +20693,7 @@ msgstr "" ...@@ -20693,7 +20693,7 @@ msgstr ""
msgid "Method" msgid "Method"
msgstr "" msgstr ""
msgid "Method Call Threshold (ms)" msgid "Method call threshold (ms)"
msgstr "" msgstr ""
msgid "Metric was successfully added." msgid "Metric was successfully added."
...@@ -21324,6 +21324,9 @@ msgstr "" ...@@ -21324,6 +21324,9 @@ msgstr ""
msgid "Monitor Settings" msgid "Monitor Settings"
msgstr "" msgstr ""
msgid "Monitor the health and performance of GitLab with Prometheus."
msgstr ""
msgid "Monitor your errors by integrating with Sentry." msgid "Monitor your errors by integrating with Sentry."
msgstr "" msgstr ""
...@@ -33723,9 +33726,6 @@ msgstr "" ...@@ -33723,9 +33726,6 @@ msgstr ""
msgid "This setting can be overridden in each project." msgid "This setting can be overridden in each project."
msgstr "" msgstr ""
msgid "This setting requires a %{link_to_restart} to take effect."
msgstr ""
msgid "This subscription is for" msgid "This subscription is for"
msgstr "" msgstr ""
...@@ -38786,9 +38786,6 @@ msgstr "" ...@@ -38786,9 +38786,6 @@ msgstr ""
msgid "help" msgid "help"
msgstr "" msgstr ""
msgid "here"
msgstr ""
msgid "http:" msgid "http:"
msgstr "" msgstr ""
...@@ -39529,9 +39526,6 @@ msgstr "" ...@@ -39529,9 +39526,6 @@ msgstr ""
msgid "reset it." msgid "reset it."
msgstr "" msgstr ""
msgid "restart"
msgstr ""
msgid "revised" msgid "revised"
msgstr "" msgstr ""
......
...@@ -490,7 +490,7 @@ RSpec.describe 'Admin updates settings' do ...@@ -490,7 +490,7 @@ RSpec.describe 'Admin updates settings' do
it 'change Prometheus settings' do it 'change Prometheus settings' do
page.within('.as-prometheus') do page.within('.as-prometheus') do
check 'Enable Prometheus Metrics' check 'Enable health and performance metrics endpoint'
click_button 'Save changes' click_button 'Save changes'
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment