File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1313 " alerts" ,
1414 " triggers_actions_ui"
1515 ],
16- "optionalPlugins" : [
17- " ml"
18- ],
16+ "optionalPlugins" : [" ml" , " observability" ],
1917 "server" : true ,
2018 "ui" : true ,
2119 "configPath" : [" xpack" , " infra" ]
Original file line number Diff line number Diff line change @@ -30,11 +30,13 @@ export class Plugin implements InfraClientPluginClass {
3030 pluginsSetup . triggers_actions_ui . alertTypeRegistry . register ( getLogsAlertType ( ) ) ;
3131 pluginsSetup . triggers_actions_ui . alertTypeRegistry . register ( createMetricThresholdAlertType ( ) ) ;
3232
33- pluginsSetup . observability . dashboard . register ( {
34- appName : 'infra_logs' ,
35- hasData : getLogsHasDataFetcher ( core . getStartServices ) ,
36- fetchData : getLogsOverviewDataFetcher ( core . getStartServices ) ,
37- } ) ;
33+ if ( pluginsSetup . observability ) {
34+ pluginsSetup . observability . dashboard . register ( {
35+ appName : 'infra_logs' ,
36+ hasData : getLogsHasDataFetcher ( core . getStartServices ) ,
37+ fetchData : getLogsOverviewDataFetcher ( core . getStartServices ) ,
38+ } ) ;
39+ }
3840
3941 core . application . register ( {
4042 id : 'logs' ,
You can’t perform that action at this time.
0 commit comments