Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translate tutorials(ceph_metrics, couchbase_metrics, docker_metrics, … #22120

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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: [],
Expand Down