diff --git a/x-pack/plugins/reporting/index.js b/x-pack/plugins/reporting/index.js index 4e4b2d18e59c..a5d6c7e6b5db 100644 --- a/x-pack/plugins/reporting/index.js +++ b/x-pack/plugins/reporting/index.js @@ -158,7 +158,7 @@ export const reporting = (kibana) => { }); // Register a function to with Monitoring to manage the collection of usage stats - monitoringPlugin.status.once('green', () => { + monitoringPlugin && monitoringPlugin.status.once('green', () => { if (monitoringPlugin.collectorSet) { const callCluster = callClusterFactory(server).getCallClusterInternal(); // uses callWithInternal as this is for internal collection monitoringPlugin.collectorSet.register(getReportingUsageCollector(server, callCluster));