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

[NP Kibana Migrations ] kibana plugin home #50444

Merged
merged 29 commits into from
Nov 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
6faa981
[NP:Kibana:homeAPI] initializes a new plugin (WIP)
TinaHeiligers Nov 12, 2019
a24e7f2
Merge branch 'master' of github.com:elastic/kibana into NP_kibana_ser…
TinaHeiligers Nov 12, 2019
eeeaae6
Typing
TinaHeiligers Nov 12, 2019
7a78b55
New plugin tutorials not needing server working
TinaHeiligers Nov 12, 2019
dfa5e34
Retains legacy tutorial registration and adds new route for new platf…
TinaHeiligers Nov 12, 2019
31548ef
Adds comment on where to pre-register general non-plugin specific tut…
TinaHeiligers Nov 13, 2019
560e7d2
Merge branch 'master' of github.com:elastic/kibana into NP_kibana_plu…
TinaHeiligers Nov 13, 2019
c22d787
Converts TutorialsPlugin to TutorialsRegistry service in new Home plugin
TinaHeiligers Nov 13, 2019
1741e3c
Changes call to location of registerTutorial in registerTutorials
TinaHeiligers Nov 13, 2019
aca40b9
Adds console log for the home plugin that's returning an empty object
TinaHeiligers Nov 13, 2019
10d477a
Removes async from setup and start methods in the home plugin and the…
TinaHeiligers Nov 13, 2019
de06bc0
Starts writing tests and creating mocks
TinaHeiligers Nov 14, 2019
7a7ce9a
Adds basic tests for TutorialRegistry service
TinaHeiligers Nov 14, 2019
fcedb41
Adds basic tests for TutorialRegistry service
TinaHeiligers Nov 14, 2019
a77aced
Merge branch 'master' of github.com:elastic/kibana into NP_kibana_plu…
TinaHeiligers Nov 14, 2019
1862438
Merge branch 'master' of github.com:elastic/kibana into NP_kibana_plu…
TinaHeiligers Nov 14, 2019
628e410
Adds test for route
TinaHeiligers Nov 14, 2019
cc978bd
Adds mocks and tests for the home plugin
TinaHeiligers Nov 14, 2019
6607a40
Adds home plugin to security plugin and registers scoped tutorials se…
TinaHeiligers Nov 15, 2019
a4fba59
Merge branch 'master' of github.com:elastic/kibana into NP_kibana_plu…
TinaHeiligers Nov 15, 2019
8e6177f
Removes incorrect addition to src core server
TinaHeiligers Nov 15, 2019
14d3068
Fixes type errors
TinaHeiligers Nov 15, 2019
16a0a38
Deletes unused code
TinaHeiligers Nov 15, 2019
93d67d6
Deletes duplicate golangMetricsSpecProvider registration
TinaHeiligers Nov 15, 2019
1d79358
Merge branch 'master' of github.com:elastic/kibana into NP_kibana_plu…
TinaHeiligers Nov 16, 2019
8d49809
Nests tutorials service in a tutorials key in the home plugin, change…
TinaHeiligers Nov 16, 2019
7f553fb
Changes url variable names
TinaHeiligers Nov 17, 2019
cb1a9f3
Merge branch 'master' of github.com:elastic/kibana into NP_kibana_plu…
TinaHeiligers Nov 17, 2019
d5a120e
Merge branch 'master' of github.com:elastic/kibana into NP_kibana_plu…
TinaHeiligers Nov 18, 2019
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: 19 additions & 4 deletions src/legacy/core_plugins/kibana/public/home/load_tutorials.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,44 @@ import _ from 'lodash';
import { getServices } from './kibana_services';
import { i18n } from '@kbn/i18n';

const baseUrlLP = getServices().addBasePath('/api/kibana/home/tutorials_LP');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we ok with using uppercase in this filename? I believe all other files in the repo are lowercase.

const baseUrl = getServices().addBasePath('/api/kibana/home/tutorials');
const headers = new Headers();
headers.append('Accept', 'application/json');
headers.append('Content-Type', 'application/json');
headers.append('kbn-xsrf', 'kibana');

let tutorials = [];
let tutorialsLegacyPlatform = [];
let tutorialsNewPlatform = [];
let tutorialsLoaded = false;

async function loadTutorials() {
try {
const response = await fetch(baseUrl, {
const responseLegacyPlatform = await fetch(baseUrlLP, {
method: 'get',
credentials: 'include',
headers: headers,
});
if (response.status >= 300) {
if (responseLegacyPlatform.status >= 300) {
throw new Error(i18n.translate('kbn.home.loadTutorials.requestFailedErrorMessage', {
defaultMessage: 'Request failed with status code: {status}', values: { status: response.status } }
defaultMessage: 'Request failed with status code: {status}', values: { status: responseLegacyPlatform.status } }
));
}
const responseNewPlatform = await fetch(baseUrl, {
method: 'get',
credentials: 'include',
headers: headers,
});
if (responseNewPlatform.status >= 300) {
throw new Error(i18n.translate('kbn.home.loadTutorials.requestFailedErrorMessage', {
defaultMessage: 'Request failed with status code: {status}', values: { status: responseNewPlatform.status } }
));
}

tutorials = await response.json();
tutorialsLegacyPlatform = await responseLegacyPlatform.json();
tutorialsNewPlatform = await responseNewPlatform.json();
tutorials = tutorialsLegacyPlatform.concat(tutorialsNewPlatform);
tutorialsLoaded = true;
} catch(err) {
getServices().toastNotifications.addDanger({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

export function registerTutorials(server) {
server.route({
path: '/api/kibana/home/tutorials',
path: '/api/kibana/home/tutorials_LP',
method: ['GET'],
handler: function (req) {
return server.getTutorials(req);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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(server, context) {
export function aerospikeMetricsSpecProvider(context) {
const moduleName = 'aerospike';
return {
id: 'aerospikeMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions';

export function apacheLogsSpecProvider(server, context) {
export function apacheLogsSpecProvider(context) {
const moduleName = 'apache';
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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(server, context) {
export function apacheMetricsSpecProvider(context) {
const moduleName = 'apache';
return {
id: 'apacheMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
onPremCloudInstructions,
} from '../../../common/tutorials/auditbeat_instructions';

export function auditbeatSpecProvider(server, context) {
export function auditbeatSpecProvider(context) {
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
id: 'auditbeat',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function awsMetricsSpecProvider(server, context) {
export function awsMetricsSpecProvider(context) {
const moduleName = 'aws';
return {
id: 'awsMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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(server, context) {
export function cephMetricsSpecProvider(context) {
const moduleName = 'ceph';
return {
id: 'cephMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
onPremCloudInstructions,
} from '../../../common/tutorials/filebeat_instructions';

export function ciscoLogsSpecProvider(server, context) {
export function ciscoLogsSpecProvider(context) {
const moduleName = 'cisco';
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/functionbeat_instructions';

export function cloudwatchLogsSpecProvider(server, context) {
export function cloudwatchLogsSpecProvider(context) {
return {
id: 'cloudwatchLogs',
name: i18n.translate('kbn.server.tutorials.cloudwatchLogs.nameTitle', {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function cockroachdbMetricsSpecProvider(server, context) {
export function cockroachdbMetricsSpecProvider(context) {
const moduleName = 'cockroachdb';
return {
id: 'cockroachdbMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function consulMetricsSpecProvider(server, context) {
export function consulMetricsSpecProvider(context) {
const moduleName = 'consul';
return {
id: 'consulMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function corednsMetricsSpecProvider(server, context) {
export function corednsMetricsSpecProvider(context) {
const moduleName = 'coredns';
return {
id: 'corednsMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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(server, context) {
export function couchbaseMetricsSpecProvider(context) {
const moduleName = 'couchbase';
return {
id: 'couchbaseMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function couchdbMetricsSpecProvider(server, context) {
export function couchdbMetricsSpecProvider(context) {
const moduleName = 'couchdb';
return {
id: 'couchdbMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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(server, context) {
export function dockerMetricsSpecProvider(context) {
const moduleName = 'docker';
return {
id: 'dockerMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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(server, context) {
export function dropwizardMetricsSpecProvider(context) {
const moduleName = 'dropwizard';
return {
id: 'dropwizardMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions';

export function elasticsearchLogsSpecProvider(server, context) {
export function elasticsearchLogsSpecProvider(context) {
const moduleName = 'elasticsearch';
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function elasticsearchMetricsSpecProvider(server, context) {
export function elasticsearchMetricsSpecProvider(context) {
const moduleName = 'elasticsearch';
return {
id: 'elasticsearchMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
onPremCloudInstructions,
} from '../../../common/tutorials/filebeat_instructions';

export function envoyproxyLogsSpecProvider(server, context) {
export function envoyproxyLogsSpecProvider(context) {
const moduleName = 'envoyproxy';
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function etcdMetricsSpecProvider(server, context) {
export function etcdMetricsSpecProvider(context) {
const moduleName = 'etcd';
return {
id: 'etcdMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function golangMetricsSpecProvider(server, context) {
export function golangMetricsSpecProvider(context) {
const moduleName = 'golang';
return {
id: moduleName + 'Metrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function haproxyMetricsSpecProvider(server, context) {
export function haproxyMetricsSpecProvider(context) {
const moduleName = 'haproxy';
return {
id: 'haproxyMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions';

export function iisLogsSpecProvider(server, context) {
export function iisLogsSpecProvider(context) {
const moduleName = 'iis';
const platforms = ['WINDOWS'];
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
onPremCloudInstructions,
} from '../../../common/tutorials/filebeat_instructions';

export function iptablesLogsSpecProvider(server, context) {
export function iptablesLogsSpecProvider(context) {
const moduleName = 'iptables';
const platforms = ['DEB', 'RPM'];
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions';

export function kafkaLogsSpecProvider(server, context) {
export function kafkaLogsSpecProvider(context) {
const moduleName = 'kafka';
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function kafkaMetricsSpecProvider(server, context) {
export function kafkaMetricsSpecProvider(context) {
const moduleName = 'kafka';
return {
id: 'kafkaMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function kibanaMetricsSpecProvider(server, context) {
export function kibanaMetricsSpecProvider(context) {
const moduleName = 'kibana';
return {
id: 'kibanaMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function kubernetesMetricsSpecProvider(server, context) {
export function kubernetesMetricsSpecProvider(context) {
const moduleName = 'kubernetes';
return {
id: 'kubernetesMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions';

export function logstashLogsSpecProvider(server, context) {
export function logstashLogsSpecProvider(context) {
const moduleName = 'logstash';
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function logstashMetricsSpecProvider(server, context) {
export function logstashMetricsSpecProvider(context) {
const moduleName = 'logstash';
return {
id: moduleName + 'Metrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function memcachedMetricsSpecProvider(server, context) {
export function memcachedMetricsSpecProvider(context) {
const moduleName = 'memcached';
return {
id: 'memcachedMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function mongodbMetricsSpecProvider(server, context) {
export function mongodbMetricsSpecProvider(context) {
const moduleName = 'mongodb';
return {
id: 'mongodbMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function mssqlMetricsSpecProvider(server, context) {
export function mssqlMetricsSpecProvider(context) {
const moduleName = 'mssql';
return {
id: 'mssqlMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function muninMetricsSpecProvider(server, context) {
export function muninMetricsSpecProvider(context) {
const moduleName = 'munin';
return {
id: 'muninMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions';

export function mysqlLogsSpecProvider(server, context) {
export function mysqlLogsSpecProvider(context) {
const moduleName = 'mysql';
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function mysqlMetricsSpecProvider(server, context) {
export function mysqlMetricsSpecProvider(context) {
const moduleName = 'mysql';
return {
id: 'mysqlMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions';

export function natsLogsSpecProvider(server, context) {
export function natsLogsSpecProvider(context) {
const moduleName = 'nats';
const geoipRequired = false;
const uaRequired = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/metricbeat_instructions';

export function natsMetricsSpecProvider(server, context) {
export function natsMetricsSpecProvider(context) {
const moduleName = 'nats';
return {
id: 'natsMetrics',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
import { TUTORIAL_CATEGORY } from '../../../common/tutorials/tutorial_category';
import { onPremInstructions, cloudInstructions, onPremCloudInstructions } from '../../../common/tutorials/filebeat_instructions';

export function nginxLogsSpecProvider(server, context) {
export function nginxLogsSpecProvider(context) {
const moduleName = 'nginx';
const platforms = ['OSX', 'DEB', 'RPM', 'WINDOWS'];
return {
Expand Down
Loading