@@ -25,7 +25,7 @@ class PrometheusService < MonitoringService
...
@@ -25,7 +25,7 @@ class PrometheusService < MonitoringService
end
end
defdescription
defdescription
'Prometheus monitoring'
s_('PrometheusService|Prometheus monitoring')
end
end
defself.to_param
defself.to_param
...
@@ -38,8 +38,8 @@ class PrometheusService < MonitoringService
...
@@ -38,8 +38,8 @@ class PrometheusService < MonitoringService
type: 'text',
type: 'text',
name: 'api_url',
name: 'api_url',
title: 'API URL',
title: 'API URL',
placeholder: 'Prometheus API Base URL, like http://prometheus.example.com/',
placeholder: s_('PrometheusService|Prometheus API Base URL, like http://prometheus.example.com/'),
help: 'By default, Prometheus listens on ‘http://localhost:9090’. It’s not recommended to change the default address and port as this might affect or conflict with other services running on the GitLab server.',
help: s_('PrometheusService|By default, Prometheus listens on ‘http://localhost:9090’. It’s not recommended to change the default address and port as this might affect or conflict with other services running on the GitLab server.'),
To set up automatic monitoring, add the environment variable
=s_("PrometheusService|To set up automatic monitoring, add the environment variable %{variable} to exporter's queries."%{variable: "<code>$CI_ENVIRONMENT_SLUG</code>"}).html_safe