diff --git a/src/core_plugins/kibana/server/tutorials/ceph_metrics/index.js b/src/core_plugins/kibana/server/tutorials/ceph_metrics/index.js index 233cd08586278c..65668fd8d21445 100644 --- a/src/core_plugins/kibana/server/tutorials/ceph_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/ceph_metrics/index.js @@ -17,6 +17,7 @@ * under the License. */ +import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; @@ -24,15 +25,27 @@ export function cephMetricsSpecProvider() { const moduleName = 'ceph'; return { id: 'cephMetrics', - name: 'Ceph metrics', + name: i18n.translate('kbn.server.tutorials.cephMetrics.nameTitle', { + defaultMessage: 'Ceph metrics', + }), isBeta: true, category: TUTORIAL_CATEGORY.METRICS, - shortDescription: 'Fetch internal metrics from the Ceph server.', - longDescription: 'The `ceph` Metricbeat module fetches internal metrics from Ceph.' + - ' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-ceph.html).', + shortDescription: i18n.translate('kbn.server.tutorials.cephMetrics.shortDescription', { + defaultMessage: 'Fetch internal metrics from the Ceph server.', + }), + longDescription: i18n.translate('kbn.server.tutorials.cephMetrics.longDescription', { + // eslint-disable-next-line no-multi-str + defaultMessage: 'The `ceph` Metricbeat module fetches internal metrics from Ceph. \ +[Learn more]({learnMoreLink}).', + values: { + learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-ceph.html', + }, + }), artifacts: { application: { - label: 'Discover', + label: i18n.translate('kbn.server.tutorials.cephMetrics.artifacts.application.label', { + defaultMessage: 'Discover', + }), path: '/app/kibana#/discover' }, dashboards: [], diff --git a/src/core_plugins/kibana/server/tutorials/couchbase_metrics/index.js b/src/core_plugins/kibana/server/tutorials/couchbase_metrics/index.js index 8008d040b3e1aa..e8d52498eb31c6 100644 --- a/src/core_plugins/kibana/server/tutorials/couchbase_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/couchbase_metrics/index.js @@ -17,6 +17,7 @@ * under the License. */ +import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; @@ -24,15 +25,27 @@ export function couchbaseMetricsSpecProvider() { const moduleName = 'couchbase'; return { id: 'couchbaseMetrics', - name: 'Couchbase metrics', + name: i18n.translate('kbn.server.tutorials.couchbaseMetrics.nameTitle', { + defaultMessage: 'Couchbase metrics', + }), isBeta: true, category: TUTORIAL_CATEGORY.METRICS, - shortDescription: 'Fetch internal metrics from Couchbase.', - longDescription: 'The `couchbase` Metricbeat module fetches internal metrics from Couchbase.' + - ' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-couchbase.html).', + shortDescription: i18n.translate('kbn.server.tutorials.couchbaseMetrics.shortDescription', { + defaultMessage: 'Fetch internal metrics from Couchbase.', + }), + longDescription: i18n.translate('kbn.server.tutorials.couchbaseMetrics.longDescription', { + // eslint-disable-next-line no-multi-str + defaultMessage: 'The `couchbase` Metricbeat module fetches internal metrics from Couchbase. \ +[Learn more]({learnMoreLink}).', + values: { + learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-couchbase.html', + }, + }), artifacts: { application: { - label: 'Discover', + label: i18n.translate('kbn.server.tutorials.couchbaseMetrics.artifacts.application.label', { + defaultMessage: 'Discover', + }), path: '/app/kibana#/discover' }, dashboards: [], diff --git a/src/core_plugins/kibana/server/tutorials/docker_metrics/index.js b/src/core_plugins/kibana/server/tutorials/docker_metrics/index.js index 68b493bf6c1a0b..3d727874215015 100644 --- a/src/core_plugins/kibana/server/tutorials/docker_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/docker_metrics/index.js @@ -17,6 +17,7 @@ * under the License. */ +import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; @@ -24,17 +25,29 @@ export function dockerMetricsSpecProvider() { const moduleName = 'docker'; return { id: 'dockerMetrics', - name: 'Docker metrics', + name: i18n.translate('kbn.server.tutorials.dockerMetrics.nameTitle', { + defaultMessage: 'Docker metrics', + }), category: TUTORIAL_CATEGORY.METRICS, - shortDescription: 'Fetch metrics about your Docker containers.', - longDescription: 'The `docker` Metricbeat module fetches metrics from the Docker server.' + - ' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-docker.html).', + shortDescription: i18n.translate('kbn.server.tutorials.dockerMetrics.shortDescription', { + defaultMessage: 'Fetch metrics about your Docker containers.', + }), + longDescription: i18n.translate('kbn.server.tutorials.dockerMetrics.longDescription', { + // eslint-disable-next-line no-multi-str + defaultMessage: 'The `docker` Metricbeat module fetches metrics from the Docker server. \ +[Learn more]({learnMoreLink}).', + values: { + learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-docker.html', + }, + }), euiIconType: 'logoDocker', artifacts: { dashboards: [ { id: 'AV4REOpp5NkDleZmzKkE', - linkLabel: 'Docker metrics dashboard', + linkLabel: i18n.translate('kbn.server.tutorials.dockerMetrics.artifacts.dashboards.linkLabel', { + defaultMessage: 'Docker metrics dashboard', + }), isOverview: true } ], diff --git a/src/core_plugins/kibana/server/tutorials/dropwizard_metrics/index.js b/src/core_plugins/kibana/server/tutorials/dropwizard_metrics/index.js index 02d15c4d6388be..96c4daf3255f06 100644 --- a/src/core_plugins/kibana/server/tutorials/dropwizard_metrics/index.js +++ b/src/core_plugins/kibana/server/tutorials/dropwizard_metrics/index.js @@ -17,6 +17,7 @@ * under the License. */ +import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions'; @@ -24,15 +25,27 @@ export function dropwizardMetricsSpecProvider() { const moduleName = 'dropwizard'; return { id: 'dropwizardMetrics', - name: 'Dropwizard metrics', + name: i18n.translate('kbn.server.tutorials.dropwizardMetrics.nameTitle', { + defaultMessage: 'Dropwizard metrics', + }), isBeta: true, category: TUTORIAL_CATEGORY.METRICS, - shortDescription: 'Fetch internal metrics from Dropwizard Java application.', - longDescription: 'The `dropwizard` Metricbeat module fetches internal metrics from Dropwizard Java Application.' + - ' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-dropwizard.html).', + shortDescription: i18n.translate('kbn.server.tutorials.dropwizardMetrics.shortDescription', { + defaultMessage: 'Fetch internal metrics from Dropwizard Java application.', + }), + longDescription: i18n.translate('kbn.server.tutorials.dropwizardMetrics.longDescription', { + // eslint-disable-next-line no-multi-str + defaultMessage: 'The `dropwizard` Metricbeat module fetches internal metrics from Dropwizard Java Application. \ +[Learn more]({learnMoreLink}).', + values: { + learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-dropwizard.html', + }, + }), artifacts: { application: { - label: 'Discover', + label: i18n.translate('kbn.server.tutorials.dropwizardMetrics.artifacts.application.label', { + defaultMessage: 'Discover', + }), path: '/app/kibana#/discover' }, dashboards: [], diff --git a/src/core_plugins/kibana/server/tutorials/elasticsearch_logs/index.js b/src/core_plugins/kibana/server/tutorials/elasticsearch_logs/index.js index ea9f7bd8dee036..c073968ce291d6 100644 --- a/src/core_plugins/kibana/server/tutorials/elasticsearch_logs/index.js +++ b/src/core_plugins/kibana/server/tutorials/elasticsearch_logs/index.js @@ -17,6 +17,7 @@ * under the License. */ +import { i18n } from '@kbn/i18n'; import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category'; import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions'; @@ -27,16 +28,28 @@ export function elasticsearchLogsSpecProvider() { const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS']; return { id: 'elasticsearchLogs', - name: 'Elasticsearch logs', + name: i18n.translate('kbn.server.tutorials.elasticsearchLogs.nameTitle', { + defaultMessage: 'Elasticsearch logs', + }), category: TUTORIAL_CATEGORY.LOGGING, isBeta: true, - shortDescription: 'Collect and parse logs created by Elasticsearch.', - longDescription: 'The `elasticsearch` Filebeat module parses logs created by Elasticsearch.' + - ' [Learn more]({config.docs.beats.filebeat}/filebeat-module-elasticsearch.html).', + shortDescription: i18n.translate('kbn.server.tutorials.elasticsearchLogs.shortDescription', { + defaultMessage: 'Collect and parse logs created by Elasticsearch.', + }), + longDescription: i18n.translate('kbn.server.tutorials.elasticsearchLogs.longDescription', { + // eslint-disable-next-line no-multi-str + defaultMessage: 'The `elasticsearch` Filebeat module parses logs created by Elasticsearch. \ +[Learn more]({learnMoreLink}).', + values: { + learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-elasticsearch.html', + }, + }), euiIconType: 'logoElasticsearch', artifacts: { application: { - label: 'Discover', + label: i18n.translate('kbn.server.tutorials.elasticsearchLogs.artifacts.application.label', { + defaultMessage: 'Discover', + }), path: '/app/kibana#/discover' }, dashboards: [],