File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
x-pack/plugins/apm/public/application Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import { ConfigSchema } from '../index';
2828import { ApmPluginSetupDeps , ApmPluginStartDeps } from '../plugin' ;
2929import { createCallApmApi } from '../services/rest/createCallApmApi' ;
3030import { px , units } from '../style/variables' ;
31+ import { createStaticIndexPattern } from '../services/rest/index_pattern' ;
3132
3233const CsmMainContainer = styled . div `
3334 padding: ${ px ( units . plus ) } ;
@@ -114,6 +115,12 @@ export const renderApp = (
114115) => {
115116 createCallApmApi ( core . http ) ;
116117
118+ // Automatically creates static index pattern and stores as saved object
119+ createStaticIndexPattern ( ) . catch ( ( e ) => {
120+ // eslint-disable-next-line no-console
121+ console . log ( 'Error creating static index pattern' , e ) ;
122+ } ) ;
123+
117124 ReactDOM . render (
118125 < CsmAppRoot
119126 core = { core }
You can’t perform that action at this time.
0 commit comments