Skip to content

Commit

Permalink
Merge branch 'logs-data-for-obs-homepage_68531' of github.com:jasonrh…
Browse files Browse the repository at this point in the history
…odes/kibana into logs-data-for-obs-homepage_68531
  • Loading branch information
jasonrhodes committed Jun 30, 2020
2 parents 8abdf6c + 29cf062 commit 3cac145
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 1 addition & 3 deletions x-pack/plugins/infra/kibana.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
"alerts",
"triggers_actions_ui"
],
"optionalPlugins": [
"ml"
],
"optionalPlugins": ["ml", "observability"],
"server": true,
"ui": true,
"configPath": ["xpack", "infra"]
Expand Down
12 changes: 7 additions & 5 deletions x-pack/plugins/infra/public/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ export class Plugin implements InfraClientPluginClass {
pluginsSetup.triggers_actions_ui.alertTypeRegistry.register(getLogsAlertType());
pluginsSetup.triggers_actions_ui.alertTypeRegistry.register(createMetricThresholdAlertType());

pluginsSetup.observability.dashboard.register({
appName: 'infra_logs',
hasData: getLogsHasDataFetcher(core.getStartServices),
fetchData: getLogsOverviewDataFetcher(core.getStartServices),
});
if (pluginsSetup.observability) {
pluginsSetup.observability.dashboard.register({
appName: 'infra_logs',
hasData: getLogsHasDataFetcher(core.getStartServices),
fetchData: getLogsOverviewDataFetcher(core.getStartServices),
});
}

core.application.register({
id: 'logs',
Expand Down

0 comments on commit 3cac145

Please sign in to comment.