Skip to content

Commit

Permalink
translate tutorials(ceph_metrics, couchbase_metrics, docker_metrics, … (
Browse files Browse the repository at this point in the history
elastic#22120)

translate tutorials(ceph_metrics, couchbase_metrics, docker_metrics, dropwizard_metrics, elasticsearch_logs)

# Conflicts:
#	src/core_plugins/kibana/server/tutorials/elasticsearch_logs/index.js
  • Loading branch information
pavel06081991 authored and arigatopavel committed Aug 23, 2018
1 parent 138f456 commit c400108
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 20 deletions.
23 changes: 18 additions & 5 deletions src/core_plugins/kibana/server/tutorials/ceph_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 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: [],
Expand Down
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 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: [],
Expand Down
23 changes: 18 additions & 5 deletions src/core_plugins/kibana/server/tutorials/docker_metrics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,37 @@
* 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 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
}
],
Expand Down
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 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: [],
Expand Down

0 comments on commit c400108

Please sign in to comment.