mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
* Revert "Revert "[Monitoring] Change all configs to `monitoring.*`" (#56214)"
This reverts commit bd08eb7efc
.
* Fix missing config changes
* More fixes
* Doc changes
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
41 lines
1.5 KiB
JavaScript
41 lines
1.5 KiB
JavaScript
/*
|
|
* 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.
|
|
*/
|
|
|
|
import { i18n } from '@kbn/i18n';
|
|
import { resolve } from 'path';
|
|
import { DEFAULT_APP_CATEGORIES } from '../../../../src/core/utils';
|
|
|
|
/**
|
|
* 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
|
|
*/
|
|
export const getUiExports = () => ({
|
|
app: {
|
|
title: i18n.translate('xpack.monitoring.stackMonitoringTitle', {
|
|
defaultMessage: 'Stack Monitoring',
|
|
}),
|
|
order: 9002,
|
|
description: i18n.translate('xpack.monitoring.uiExportsDescription', {
|
|
defaultMessage: 'Monitoring for Elastic Stack',
|
|
}),
|
|
icon: 'plugins/monitoring/icons/monitoring.svg',
|
|
euiIconType: 'monitoringApp',
|
|
linkToLastSubUrl: false,
|
|
main: 'plugins/monitoring/monitoring',
|
|
category: DEFAULT_APP_CATEGORIES.management,
|
|
},
|
|
injectDefaultVars(server) {
|
|
const config = server.config();
|
|
return {
|
|
monitoringUiEnabled: config.get('monitoring.ui.enabled'),
|
|
};
|
|
},
|
|
hacks: ['plugins/monitoring/hacks/toggle_app_link_in_nav'],
|
|
home: ['plugins/monitoring/register_feature'],
|
|
styleSheetPaths: resolve(__dirname, 'public/index.scss'),
|
|
});
|