Commit 4209355e authored by Marvin Karegyeya's avatar Marvin Karegyeya Committed by Rémy Coutable

Externalize strings in /application_settings/_prometheus.html.haml

Changelog: other
parent e538f468
...@@ -3,31 +3,25 @@ ...@@ -3,31 +3,25 @@
%fieldset %fieldset
%p %p
Enable a Prometheus metrics endpoint at - link_to_restart = link_to(_('restart'), help_page_path('administration/restart_gitlab'))
%code= metrics_path = _('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) }
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 = _('This setting requires a %{link_to_restart} to take effect.').html_safe % { link_to_restart: link_to_restart }
= 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 sprite_icon('question-o'), help_page_path('administration/monitoring/prometheus/index') = 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 Prometheus Metrics")
- 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 = _("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 }
%code prometheus_multiproc_dir
does not exist or is not pointing to a valid directory.
= 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 A method call is only tracked when it takes longer to complete than
the given amount of milliseconds. 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"
---
title: Externalise strings in /application_settings/_prometheus.html.haml
merge_request: 58030
author: nuwe1
type: other
...@@ -12038,6 +12038,9 @@ msgstr "" ...@@ -12038,6 +12038,9 @@ 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 ""
...@@ -12059,6 +12062,9 @@ msgstr "" ...@@ -12059,6 +12062,9 @@ 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}."
msgstr ""
msgid "Enable access to Grafana" msgid "Enable access to Grafana"
msgstr "" msgstr ""
...@@ -12326,6 +12332,9 @@ msgstr "" ...@@ -12326,6 +12332,9 @@ msgstr ""
msgid "Environment scope" msgid "Environment scope"
msgstr "" msgstr ""
msgid "Environment variable %{code_start}%{environment_variable}%{code_end} does not exist or is not pointing to a valid directory."
msgstr ""
msgid "Environment variables are configured by your administrator to be %{link_start}protected%{link_end} by default." msgid "Environment variables are configured by your administrator to be %{link_start}protected%{link_end} by default."
msgstr "" msgstr ""
...@@ -20416,6 +20425,9 @@ msgstr "" ...@@ -20416,6 +20425,9 @@ msgstr ""
msgid "Method" msgid "Method"
msgstr "" msgstr ""
msgid "Method Call Threshold (ms)"
msgstr ""
msgid "Metric was successfully added." msgid "Metric was successfully added."
msgstr "" msgstr ""
...@@ -32879,6 +32891,9 @@ msgstr "" ...@@ -32879,6 +32891,9 @@ 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 setting will update the hostname that is used to generate private commit emails. %{learn_more}" msgid "This setting will update the hostname that is used to generate private commit emails. %{learn_more}"
msgstr "" msgstr ""
...@@ -35628,6 +35643,9 @@ msgstr "" ...@@ -35628,6 +35643,9 @@ msgstr ""
msgid "Vulnerability|Unmodified Response" msgid "Vulnerability|Unmodified Response"
msgstr "" msgstr ""
msgid "WARNING:"
msgstr ""
msgid "Wait for the file to load to copy its contents" msgid "Wait for the file to load to copy its contents"
msgstr "" msgstr ""
...@@ -37807,6 +37825,9 @@ msgstr "" ...@@ -37807,6 +37825,9 @@ msgstr ""
msgid "help" msgid "help"
msgstr "" msgstr ""
msgid "here"
msgstr ""
msgid "http:" msgid "http:"
msgstr "" msgstr ""
...@@ -38535,6 +38556,9 @@ msgstr "" ...@@ -38535,6 +38556,9 @@ msgstr ""
msgid "reset it." msgid "reset it."
msgstr "" msgstr ""
msgid "restart"
msgstr ""
msgid "revised" msgid "revised"
msgstr "" msgstr ""
......
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