From 8a09ab733dbbf8083bf5ee4d6d094f893594fa73 Mon Sep 17 00:00:00 2001 From: Igor Zaytsev Date: Wed, 27 Nov 2019 09:21:53 -0500 Subject: [PATCH] Fix from 51618 pr --- x-pack/legacy/plugins/monitoring/index.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/x-pack/legacy/plugins/monitoring/index.ts b/x-pack/legacy/plugins/monitoring/index.ts index 9f844ffb4245136..ad38d7c87cbdb3d 100644 --- a/x-pack/legacy/plugins/monitoring/index.ts +++ b/x-pack/legacy/plugins/monitoring/index.ts @@ -95,7 +95,7 @@ export const monitoring = (kibana: LegacyPluginApi): ArrayOrItem) => server.log(...args); const route = (...args: Parameters) => server.route(...args); const expose = (...args: Parameters) => server.expose(...args); @@ -108,9 +108,6 @@ export const monitoring = (kibana: LegacyPluginApi): ArrayOrItem & { infra?: InfraPlugin }; const { xpack_main, elasticsearch, infra } = serverPlugins; - new Plugin().setup(serverFacade, { xpack_main, elasticsearch, infra }); + const { usageCollection } = server.newPlatform.setup.plugins; + new Plugin().setup(serverFacade, { xpack_main, elasticsearch, infra, usageCollection, }); }, postInit(server: Server) {