Skip to content

Commit

Permalink
Add home tutorial for ActiveMQ filebeat module (#52034) (#52072)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtojek authored Dec 3, 2019
1 parent aa5548c commit e8eb9cb
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
/*
* 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 { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions';

export function activemqLogsSpecProvider(server, context) {
const moduleName = 'activemq';
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
id: 'activemqLogs',
name: i18n.translate('kbn.server.tutorials.activemqLogs.nameTitle', {
defaultMessage: 'ActiveMQ logs',
}),
category: TUTORIAL_CATEGORY.LOGGING,
shortDescription: i18n.translate('kbn.server.tutorials.activemqLogs.shortDescription', {
defaultMessage: 'Collect ActiveMQ logs with Filebeat.',
}),
longDescription: i18n.translate('kbn.server.tutorials.activemqLogs.longDescription', {
defaultMessage: 'Collect ActiveMQ logs with Filebeat. \
[Learn more]({learnMoreLink}).',
values: {
learnMoreLink: '{config.docs.beats.filebeat}/filebeat-module-activemq.html',
},
}),
euiIconType: '/plugins/kibana/home/tutorial_resources/logos/activemq.svg',
artifacts: {
dashboards: [
{
id: '26434790-1464-11ea-8fd8-030a13064883',
linkLabel: i18n.translate('kbn.server.tutorials.activemqLogs.artifacts.dashboards.linkLabel', {
defaultMessage: 'ActiveMQ Application Events',
}),
isOverview: true
}
],
exportedFields: {
documentationUrl: '{config.docs.beats.filebeat}/exported-fields-activemq.html'
}
},
completionTimeMinutes: 10,
previewImagePath: '/plugins/kibana/home/tutorial_resources/activemq_logs/screenshot.png',
onPrem: onPremInstructions(moduleName, platforms, context),
elasticCloud: cloudInstructions(moduleName, platforms),
onPremElasticCloud: onPremCloudInstructions(moduleName, platforms)
};
}
2 changes: 2 additions & 0 deletions src/legacy/core_plugins/kibana/server/tutorials/register.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ import { emsBoundariesSpecProvider } from './ems';
import { consulMetricsSpecProvider } from './consul_metrics';
import { traefikMetricsSpecProvider } from './traefik_metrics';
import { awsLogsSpecProvider } from './aws_logs';
import { activemqLogsSpecProvider } from './activemq_logs';
import { activemqMetricsSpecProvider } from './activemq_metrics';

export function registerTutorials(server) {
Expand Down Expand Up @@ -143,5 +144,6 @@ export function registerTutorials(server) {
server.newPlatform.setup.plugins.home.tutorials.registerTutorial(consulMetricsSpecProvider);
server.newPlatform.setup.plugins.home.tutorials.registerTutorial(traefikMetricsSpecProvider);
server.newPlatform.setup.plugins.home.tutorials.registerTutorial(awsLogsSpecProvider);
server.newPlatform.setup.plugins.home.tutorials.registerTutorial(activemqLogsSpecProvider);
server.newPlatform.setup.plugins.home.tutorials.registerTutorial(activemqMetricsSpecProvider);
}

0 comments on commit e8eb9cb

Please sign in to comment.