Skip to content

Commit

Permalink
translate tutorials(aerospike_metrics, apache_logs, apache_metrics) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pavel06081991 committed Sep 11, 2018
1 parent 674d65b commit 2845048
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,34 @@
* 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 aerospikeMetricsSpecProvider() {
const moduleName = 'aerospike';
return {
id: 'aerospikeMetrics',
name: 'Aerospike metrics',
name: i18n.translate('kbn.server.tutorials.aerospikeMetrics.nameTitle', {
defaultMessage: 'Aerospike metrics',
}),
isBeta: true,
category: TUTORIAL_CATEGORY.METRICS,
shortDescription: 'Fetch internal metrics from the Aerospike server.',
longDescription: 'The `aerospike` Metricbeat module fetches internal metrics from Aerospike.' +
' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-aerospike.html).',
shortDescription: i18n.translate('kbn.server.tutorials.aerospikeMetrics.shortDescription', {
defaultMessage: 'Fetch internal metrics from the Aerospike server.',
}),
longDescription: i18n.translate('kbn.server.tutorials.aerospikeMetrics.longDescription', {
defaultMessage: 'The `aerospike` Metricbeat module fetches internal metrics from Aerospike. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-aerospike.html',
},
}),
artifacts: {
application: {
label: 'Discover',
label: i18n.translate('kbn.server.tutorials.aerospikeMetrics.artifacts.application.label', {
defaultMessage: 'Discover',
}),
path: '/app/kibana#/discover'
},
dashboards: [],
Expand Down
22 changes: 17 additions & 5 deletions src/core_plugins/kibana/server/tutorials/apache_logs/index.js
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,17 +28,28 @@ export function apacheLogsSpecProvider() {
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
id: 'apacheLogs',
name: 'Apache logs',
name: i18n.translate('kbn.server.tutorials.apacheLogs.nameTitle', {
defaultMessage: 'Apache logs',
}),
category: TUTORIAL_CATEGORY.LOGGING,
shortDescription: 'Collect and parse access and error logs created by the Apache HTTP server.',
longDescription: 'The apache2 Filebeat module parses access and error logs created by the Apache 2 HTTP server.' +
' [Learn more]({config.docs.beats.filebeat}/filebeat-module-apache2.html).',
shortDescription: i18n.translate('kbn.server.tutorials.apacheLogs.shortDescription', {
defaultMessage: 'Collect and parse access and error logs created by the Apache HTTP server.',
}),
longDescription: i18n.translate('kbn.server.tutorials.apacheLogs.longDescription', {
defaultMessage: 'The apache2 Filebeat module parses access and error logs created by the Apache 2 HTTP server. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-apache2.html',
},
}),
euiIconType: 'logoApache',
artifacts: {
dashboards: [
{
id: 'Filebeat-Apache2-Dashboard',
linkLabel: 'Apache2 logs dashboard',
linkLabel: i18n.translate('kbn.server.tutorials.apacheLogs.artifacts.dashboards.linkLabel', {
defaultMessage: 'Apache2 logs dashboard',
}),
isOverview: true
}
],
Expand Down
22 changes: 17 additions & 5 deletions src/core_plugins/kibana/server/tutorials/apache_metrics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +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 apacheMetricsSpecProvider() {
const moduleName = 'apache';
return {
id: 'apacheMetrics',
name: 'Apache metrics',
name: i18n.translate('kbn.server.tutorials.apacheMetrics.nameTitle', {
defaultMessage: 'Apache metrics',
}),
category: TUTORIAL_CATEGORY.METRICS,
shortDescription: 'Fetch internal metrics from the Apache 2 HTTP server.',
longDescription: 'The `apache` Metricbeat module fetches internal metrics from the Apache 2 HTTP server.' +
' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-apache.html).',
shortDescription: i18n.translate('kbn.server.tutorials.apacheMetrics.shortDescription', {
defaultMessage: 'Fetch internal metrics from the Apache 2 HTTP server.',
}),
longDescription: i18n.translate('kbn.server.tutorials.apacheMetrics.longDescription', {
defaultMessage: 'The `apache` Metricbeat module fetches internal metrics from the Apache 2 HTTP server. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-apache.html',
},
}),
euiIconType: 'logoApache',
artifacts: {
dashboards: [
{
id: 'Metricbeat-Apache-HTTPD-server-status',
linkLabel: 'Apache metrics dashboard',
linkLabel: i18n.translate('kbn.server.tutorials.apacheMetrics.artifacts.dashboards.linkLabel', {
defaultMessage: 'Apache metrics dashboard',
}),
isOverview: true
}
],
Expand Down

0 comments on commit 2845048

Please sign in to comment.