diff options
-rw-r--r-- | x-pack/plugins/reporting/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x-pack/plugins/reporting/index.js b/x-pack/plugins/reporting/index.js index 4e4b2d18e..a5d6c7e6b 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)); |