2018-04-20 21:13:37 +02:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
|
|
*/
|
|
|
|
|
2018-12-17 20:50:15 +01:00
|
|
|
import { i18n } from '@kbn/i18n';
|
2018-12-20 23:58:13 +01:00
|
|
|
import { resolve } from 'path';
|
2018-12-17 20:50:15 +01:00
|
|
|
|
2018-04-20 21:13:37 +02:00
|
|
|
/**
|
|
|
|
* Configuration of dependency objects for the UI, which are needed for the
|
|
|
|
* Monitoring UI app and views and data for outside the monitoring
|
|
|
|
* app (injectDefaultVars and hacks)
|
|
|
|
* @return {Object} data per Kibana plugin uiExport schema
|
|
|
|
*/
|
2018-12-17 20:50:15 +01:00
|
|
|
export const getUiExports = () => ({
|
2018-04-20 21:13:37 +02:00
|
|
|
app: {
|
2019-01-07 18:28:07 +01:00
|
|
|
title: i18n.translate('xpack.monitoring.stackMonitoringTitle', { defaultMessage: 'Stack Monitoring' }),
|
2018-04-20 21:13:37 +02:00
|
|
|
order: 9002,
|
2018-12-17 20:50:15 +01:00
|
|
|
description: i18n.translate('xpack.monitoring.uiExportsDescription', {
|
|
|
|
defaultMessage: 'Monitoring for Elastic Stack',
|
|
|
|
}),
|
2018-04-20 21:13:37 +02:00
|
|
|
icon: 'plugins/monitoring/icons/monitoring.svg',
|
2018-10-02 21:09:47 +02:00
|
|
|
euiIconType: 'monitoringApp',
|
2018-04-20 21:13:37 +02:00
|
|
|
linkToLastSubUrl: false,
|
|
|
|
main: 'plugins/monitoring/monitoring',
|
|
|
|
},
|
|
|
|
injectDefaultVars(server) {
|
|
|
|
const config = server.config();
|
|
|
|
return {
|
|
|
|
monitoringUiEnabled: config.get('xpack.monitoring.ui.enabled')
|
|
|
|
};
|
|
|
|
},
|
|
|
|
hacks: [ 'plugins/monitoring/hacks/toggle_app_link_in_nav' ],
|
2018-09-21 04:01:06 +02:00
|
|
|
home: [ 'plugins/monitoring/register_feature' ],
|
2018-12-20 23:58:13 +01:00
|
|
|
styleSheetPaths: resolve(__dirname, 'public/index.scss'),
|
2018-12-17 20:50:15 +01:00
|
|
|
});
|