Skip to content

Commit

Permalink
translate tutorials(osquery_logs, php_fpm_metrics, postgresql_logs, p… (
Browse files Browse the repository at this point in the history
elastic#22124)

translate tutorials(osquery_logs, php_fpm_metrics, postgresql_logs, postgresql_metrics, prometheus_metrics, rabbitmq_metrics, redis_logs)
# Conflicts:
#	src/core_plugins/kibana/server/tutorials/postgresql_logs/index.js
  • Loading branch information
pavel06081991 authored and arigatopavel committed Aug 24, 2018
1 parent b6a2ca4 commit d41f597
Show file tree
Hide file tree
Showing 6 changed files with 109 additions and 34 deletions.
23 changes: 18 additions & 5 deletions src/core_plugins/kibana/server/tutorials/osquery_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,29 @@ export function osqueryLogsSpecProvider() {
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
id: 'osqueryLogs',
name: 'Osquery logs',
name: i18n.translate('kbn.server.tutorials.osqueryLogs.nameTitle', {
defaultMessage: 'Osquery logs',
}),
category: TUTORIAL_CATEGORY.SECURITY,
shortDescription: 'Collect the result logs created by osqueryd.',
longDescription: 'The `osquery` Filebeat module collects the JSON result logs collected by `osqueryd`.' +
' [Learn more]({config.docs.beats.filebeat}/filebeat-module-osquery.html).',
shortDescription: i18n.translate('kbn.server.tutorials.osqueryLogs.shortDescription', {
defaultMessage: 'Collect the result logs created by osqueryd.',
}),
longDescription: i18n.translate('kbn.server.tutorials.osqueryLogs.longDescription', {
// eslint-disable-next-line no-multi-str
defaultMessage: 'The `osquery` Filebeat module collects the JSON result logs collected by `osqueryd`. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-osquery.html',
},
}),
//euiIconType: 'logoOsquery',
artifacts: {
dashboards: [
{
id: '69f5ae20-eb02-11e7-8f04-51231daa5b05',
linkLabel: 'Osquery logs dashboard',
linkLabel: i18n.translate('kbn.server.tutorials.osqueryLogs.artifacts.dashboards.linkLabel', {
defaultMessage: 'Osquery logs dashboard',
}),
isOverview: true
}
],
Expand Down
19 changes: 15 additions & 4 deletions src/core_plugins/kibana/server/tutorials/php_fpm_metrics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,30 @@
* 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 phpfpmMetricsSpecProvider() {
const moduleName = 'php_fpm';
return {
id: 'phpfpmMetrics',
name: 'PHP-FPM metrics',
name: i18n.translate('kbn.server.tutorials.phpFpmMetrics.nameTitle', {
defaultMessage: 'PHP-FPM metrics',
}),
category: TUTORIAL_CATEGORY.METRICS,
isBeta: true,
shortDescription: 'Fetch internal metrics from PHP-FPM.',
longDescription: 'The `php_fpm` Metricbeat module fetches internal metrics from the PHP-FPM server.' +
' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-php_fpm.html).',
shortDescription: i18n.translate('kbn.server.tutorials.phpFpmMetrics.shortDescription', {
defaultMessage: 'Fetch internal metrics from PHP-FPM.',
}),
longDescription: i18n.translate('kbn.server.tutorials.phpFpmMetrics.longDescription', {
// eslint-disable-next-line no-multi-str
defaultMessage: 'The `php_fpm` Metricbeat module fetches internal metrics from the PHP-FPM server. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-php_fpm.html',
},
}),
//euiIconType: 'logoPHPFPM',
artifacts: {
dashboards: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,30 @@
* 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 postgresqlMetricsSpecProvider() {
const moduleName = 'postgresql';
return {
id: 'postgresqlMetrics',
name: 'PostgreSQL metrics',
name: i18n.translate('kbn.server.tutorials.postgresqlMetrics.nameTitle', {
defaultMessage: 'PostgreSQL metrics',
}),
category: TUTORIAL_CATEGORY.METRICS,
isBeta: true,
shortDescription: 'Fetch internal metrics from PostgreSQL.',
longDescription: 'The `postgresql` Metricbeat module fetches internal metrics from the PostgreSQL server.' +
' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-postgresql.html).',
shortDescription: i18n.translate('kbn.server.tutorials.postgresqlMetrics.shortDescription', {
defaultMessage: 'Fetch internal metrics from PostgreSQL.',
}),
longDescription: i18n.translate('kbn.server.tutorials.postgresqlMetrics.longDescription', {
// eslint-disable-next-line no-multi-str
defaultMessage: 'The `postgresql` Metricbeat module fetches internal metrics from the PostgreSQL server. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-postgresql.html',
},
}),
//euiIconType: 'logoPostgreSQL',
artifacts: {
dashboards: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +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 prometheusMetricsSpecProvider() {
const moduleName = 'prometheus';
return {
id: moduleName + 'Metrics',
name: 'Prometheus metrics',
name: i18n.translate('kbn.server.tutorials.prometheusMetrics.nameTitle', {
defaultMessage: 'Prometheus metrics',
}),
isBeta: true,
category: TUTORIAL_CATEGORY.METRICS,
shortDescription: 'Fetch metrics from a Prometheus exporter.',
longDescription: 'The `' + moduleName + '` Metricbeat module fetches metrics from Prometheus endpoint.' +
' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-' + moduleName + '.html).',
shortDescription: i18n.translate('kbn.server.tutorials.prometheusMetrics.shortDescription', {
defaultMessage: 'Fetch metrics from a Prometheus exporter.',
}),
longDescription: i18n.translate('kbn.server.tutorials.prometheusMetrics.longDescription', {
// eslint-disable-next-line no-multi-str
defaultMessage: 'The `{moduleName}` Metricbeat module fetches metrics from Prometheus endpoint. \
[Learn more]({learnMoreLink}).',
values: {
moduleName,
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-' + moduleName + '.html',
},
}),
artifacts: {
application: {
label: 'Discover',
label: i18n.translate('kbn.server.tutorials.prometheusMetrics.artifacts.application.label', {
defaultMessage: 'Discover',
}),
path: '/app/kibana#/discover'
},
dashboards: [],
Expand Down
23 changes: 18 additions & 5 deletions src/core_plugins/kibana/server/tutorials/rabbitmq_metrics/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +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 rabbitmqMetricsSpecProvider() {
const moduleName = 'rabbitmq';
return {
id: 'rabbitmqMetrics',
name: 'RabbitMQ metrics',
name: i18n.translate('kbn.server.tutorials.rabbitmqMetrics.nameTitle', {
defaultMessage: 'RabbitMQ metrics',
}),
category: TUTORIAL_CATEGORY.METRICS,
shortDescription: 'Fetch internal metrics from the RabbitMQ server.',
longDescription: 'The `rabbitmq` Metricbeat module fetches internal metrics from the RabbitMQ server.' +
' [Learn more]({config.docs.beats.metricbeat}/metricbeat-module-rabbitmq.html).',
shortDescription: i18n.translate('kbn.server.tutorials.rabbitmqMetrics.shortDescription', {
defaultMessage: 'Fetch internal metrics from the RabbitMQ server.',
}),
longDescription: i18n.translate('kbn.server.tutorials.rabbitmqMetrics.longDescription', {
// eslint-disable-next-line no-multi-str
defaultMessage: 'The `rabbitmq` Metricbeat module fetches internal metrics from the RabbitMQ server. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-rabbitmq.html',
},
}),
//euiIconType: 'logoRabbitMQ',
isBeta: true,
artifacts: {
dashboards: [
{
id: 'AV4YobKIge1VCbKU_qVo',
linkLabel: 'RabbitMQ metrics dashboard',
linkLabel: i18n.translate('kbn.server.tutorials.rabbitmqMetrics.artifacts.dashboards.linkLabel', {
defaultMessage: 'RabbitMQ metrics dashboard',
}),
isOverview: true
}
],
Expand Down
35 changes: 24 additions & 11 deletions src/core_plugins/kibana/server/tutorials/redis_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,23 +28,35 @@ export function redisLogsSpecProvider() {
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
id: 'redisLogs',
name: 'Redis logs',
name: i18n.translate('kbn.server.tutorials.redisLogs.nameTitle', {
defaultMessage: 'Redis logs',
}),
category: TUTORIAL_CATEGORY.LOGGING,
shortDescription: 'Collect and parse error and slow logs created by Redis.',
longDescription: 'The `redis` Filebeat module parses error and slow logs created by Redis.' +
' For Redis to write error logs, make sure the `logfile` option, from the' +
' Redis configuration file, is set to `redis-server.log`.' +
' The slow logs are read directly from Redis via the `SLOWLOG` command.' +
' For Redis to record slow logs, make sure the `slowlog-log-slower-than`' +
' option is set.' +
' Note that the `slowlog` fileset is experimental.' +
' [Learn more]({config.docs.beats.filebeat}/filebeat-module-redis.html).',
shortDescription: i18n.translate('kbn.server.tutorials.redisLogs.shortDescription', {
defaultMessage: 'Collect and parse error and slow logs created by Redis.',
}),
longDescription: i18n.translate('kbn.server.tutorials.redisLogs.longDescription', {
// eslint-disable-next-line no-multi-str
defaultMessage: 'The `redis` Filebeat module parses error and slow logs created by Redis. \
For Redis to write error logs, make sure the `logfile` option, from the \
Redis configuration file, is set to `redis-server.log`. \
The slow logs are read directly from Redis via the `SLOWLOG` command. \
For Redis to record slow logs, make sure the `slowlog-log-slower-than` \
option is set. \
Note that the `slowlog` fileset is experimental. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-redis.html',
},
}),
euiIconType: 'logoRedis',
artifacts: {
dashboards: [
{
id: '7fea2930-478e-11e7-b1f0-cb29bac6bf8b',
linkLabel: 'Redis logs dashboard',
linkLabel: i18n.translate('kbn.server.tutorials.redisLogs.artifacts.dashboards.linkLabel', {
defaultMessage: 'Redis logs dashboard',
}),
isOverview: true
}
],
Expand Down

0 comments on commit d41f597

Please sign in to comment.