Skip to content

Commit

Permalink
translate tutorials(elasticsearch_metrics, etcd_metrics, golang_metri… (
Browse files Browse the repository at this point in the history
#22121) (#22352)

translate tutorials(elasticsearch_metrics, etcd_metrics, golang_metrics, haprozy_metrics, iis_logs)
# Conflicts:
#	src/core_plugins/kibana/server/tutorials/iis_logs/index.js
  • Loading branch information
pavel06081991 committed Aug 24, 2018
1 parent 5e81bbb commit 1c821e8
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,36 @@
* 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';

export function elasticsearchMetricsSpecProvider() {
const moduleName = 'elasticsearch';
return {
id: 'elasticsearchMetrics',
name: 'Elasticsearch metrics',
name: i18n.translate('kbn.server.tutorials.elasticsearchMetrics.nameTitle', {
defaultMessage: 'Elasticsearch metrics',
}),
isBeta: true,
category: TUTORIAL_CATEGORY.METRICS,
shortDescription: 'Fetch internal metrics from Elasticsearch.',
longDescription: 'The `elasticsearch` Metricbeat module fetches internal metrics from Elasticsearch.' +
' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-elasticsearch.html).',
shortDescription: i18n.translate('kbn.server.tutorials.elasticsearchMetrics.shortDescription', {
defaultMessage: 'Fetch internal metrics from Elasticsearch.',
}),
longDescription: i18n.translate('kbn.server.tutorials.elasticsearchMetrics.longDescription', {
// eslint-disable-next-line no-multi-str
defaultMessage: 'The `elasticsearch` Metricbeat module fetches internal metrics from Elasticsearch. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-elasticsearch.html',
},
}),
euiIconType: 'logoElasticsearch',
artifacts: {
application: {
label: 'Discover',
label: i18n.translate('kbn.server.tutorials.elasticsearchMetrics.artifacts.application.label', {
defaultMessage: 'Discover',
}),
path: '/app/kibana#/discover'
},
dashboards: [],
Expand Down
23 changes: 18 additions & 5 deletions src/core_plugins/kibana/server/tutorials/etcd_metrics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,35 @@
* 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';

export function etcdMetricsSpecProvider() {
const moduleName = 'etcd';
return {
id: 'etcdMetrics',
name: 'Etcd metrics',
name: i18n.translate('kbn.server.tutorials.etcdMetrics.nameTitle', {
defaultMessage: 'Etcd metrics',
}),
isBeta: true,
category: TUTORIAL_CATEGORY.METRICS,
shortDescription: 'Fetch internal metrics from the Etcd server.',
longDescription: 'The `etcd` Metricbeat module fetches internal metrics from Etcd.' +
' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-etcd.html).',
shortDescription: i18n.translate('kbn.server.tutorials.etcdMetrics.shortDescription', {
defaultMessage: 'Fetch internal metrics from the Etcd server.',
}),
longDescription: i18n.translate('kbn.server.tutorials.etcdMetrics.longDescription', {
// eslint-disable-next-line no-multi-str
defaultMessage: 'The `etcd` Metricbeat module fetches internal metrics from Etcd. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-etcd.html',
},
}),
artifacts: {
application: {
label: 'Discover',
label: i18n.translate('kbn.server.tutorials.etcdMetrics.artifacts.application.label', {
defaultMessage: 'Discover',
}),
path: '/app/kibana#/discover'
},
dashboards: [],
Expand Down
24 changes: 19 additions & 5 deletions src/core_plugins/kibana/server/tutorials/golang_metrics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,38 @@
* 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';

export function golangMetricsSpecProvider() {
const moduleName = 'golang';
return {
id: moduleName + 'Metrics',
name: 'Golang metrics',
name: i18n.translate('kbn.server.tutorials.golangMetrics.nameTitle', {
defaultMessage: 'Golang metrics',
}),
isBeta: true,
category: TUTORIAL_CATEGORY.METRICS,
shortDescription: 'Fetch internal metrics from a Golang app.',
longDescription: 'The `' + moduleName + '` Metricbeat module fetches internal metrics from a Golang app.' +
' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-' + moduleName + '.html).',
shortDescription: i18n.translate('kbn.server.tutorials.golangMetrics.shortDescription', {
defaultMessage: 'Fetch internal metrics from a Golang app.',
}),
longDescription: i18n.translate('kbn.server.tutorials.golangMetrics.longDescription', {
// eslint-disable-next-line no-multi-str
defaultMessage: 'The `{moduleName}` Metricbeat module fetches internal metrics from a Golang app. \
[Learn more]({learnMoreLink}).',
values: {
moduleName,
learnMoreLink: `{config.docs.beats.metricbeat}/metricbeat-module-${moduleName}.html`,
},
}),
artifacts: {
dashboards: [
{
id: 'f2dc7320-f519-11e6-a3c9-9d1f7c42b045',
linkLabel: 'Golang metrics dashboard',
linkLabel: i18n.translate('kbn.server.tutorials.golangMetrics.artifacts.dashboards.linkLabel', {
defaultMessage: 'Golang metrics dashboard',
}),
isOverview: true
}
],
Expand Down
23 changes: 18 additions & 5 deletions src/core_plugins/kibana/server/tutorials/haproxy_metrics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,35 @@
* 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';

export function haproxyMetricsSpecProvider() {
const moduleName = 'haproxy';
return {
id: 'haproxyMetrics',
name: 'HAProxy metrics',
name: i18n.translate('kbn.server.tutorials.haproxyMetrics.nameTitle', {
defaultMessage: 'HAProxy metrics',
}),
isBeta: true,
category: TUTORIAL_CATEGORY.METRICS,
shortDescription: 'Fetch internal metrics from the HAProxy server.',
longDescription: 'The `haproxy` Metricbeat module fetches internal metrics from HAProxy.' +
' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-haproxy.html).',
shortDescription: i18n.translate('kbn.server.tutorials.haproxyMetrics.shortDescription', {
defaultMessage: 'Fetch internal metrics from the HAProxy server.',
}),
longDescription: i18n.translate('kbn.server.tutorials.haproxyMetrics.longDescription', {
// eslint-disable-next-line no-multi-str
defaultMessage: 'The `haproxy` Metricbeat module fetches internal metrics from HAProxy. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-haproxy.html',
},
}),
artifacts: {
application: {
label: 'Discover',
label: i18n.translate('kbn.server.tutorials.haproxyMetrics.artifacts.application.label', {
defaultMessage: 'Discover',
}),
path: '/app/kibana#/discover'
},
dashboards: [],
Expand Down

0 comments on commit 1c821e8

Please sign in to comment.