Add Redis Enterprise to home tutorial (#59136) (#59279)

This commit is contained in:
Marcin Tojek 2020-03-04 12:35:55 +01:00 committed by GitHub
parent 461eea4c61
commit f09a7ae69f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 74 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 941 KiB

View file

@ -0,0 +1,72 @@
/*
* Licensed to Elasticsearch B.V. under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch B.V. licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
import { i18n } from '@kbn/i18n';
import { TutorialsCategory } from '../../services/tutorials';
import {
onPremInstructions,
cloudInstructions,
onPremCloudInstructions,
} from '../instructions/metricbeat_instructions';
import {
TutorialContext,
TutorialSchema,
} from '../../services/tutorials/lib/tutorials_registry_types';
export function redisenterpriseMetricsSpecProvider(context: TutorialContext): TutorialSchema {
const moduleName = 'redisenterprise';
return {
id: 'redisenterpriseMetrics',
name: i18n.translate('home.tutorials.redisenterpriseMetrics.nameTitle', {
defaultMessage: 'Redis Enterprise metrics',
}),
category: TutorialsCategory.METRICS,
shortDescription: i18n.translate('home.tutorials.redisenterpriseMetrics.shortDescription', {
defaultMessage: 'Fetch monitoring metrics from Redis Enterprise Server.',
}),
longDescription: i18n.translate('home.tutorials.redisenterpriseMetrics.longDescription', {
defaultMessage:
'The `redisenterprise` Metricbeat module fetches monitoring metrics from Redis Enterprise Server \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.metricbeat}/metricbeat-module-redisenterprise.html',
},
}),
euiIconType: 'logoRedis',
isBeta: true,
artifacts: {
application: {
label: i18n.translate('home.tutorials.redisenterpriseMetrics.artifacts.application.label', {
defaultMessage: 'Discover',
}),
path: '/app/kibana#/discover',
},
dashboards: [],
exportedFields: {
documentationUrl: '{config.docs.beats.metricbeat}/exported-fields-redisenterprise.html',
},
},
completionTimeMinutes: 10,
previewImagePath:
'/plugins/kibana/home/tutorial_resources/redisenterprise_metrics/screenshot.png',
onPrem: onPremInstructions(moduleName, context),
elasticCloud: cloudInstructions(moduleName),
onPremElasticCloud: onPremCloudInstructions(moduleName),
};
}

View file

@ -86,6 +86,7 @@ import { stanMetricsSpecProvider } from './stan_metrics';
import { envoyproxyMetricsSpecProvider } from './envoyproxy_metrics';
import { ibmmqMetricsSpecProvider } from './ibmmq_metrics';
import { statsdMetricsSpecProvider } from './statsd_metrics';
import { redisenterpriseMetricsSpecProvider } from './redisenterprise_metrics';
export const builtInTutorials = [
systemLogsSpecProvider,
@ -158,4 +159,5 @@ export const builtInTutorials = [
stanMetricsSpecProvider,
envoyproxyMetricsSpecProvider,
statsdMetricsSpecProvider,
redisenterpriseMetricsSpecProvider,
];