mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
[Obs AI Assistant] Disable in Logs Essentials mode (#223236)
Closes https://github.com/elastic/observability-dev/issues/4498 Closes https://github.com/elastic/obs-ai-assistant-team/issues/257
This commit is contained in:
parent
04b294e67d
commit
49d366c70a
7 changed files with 23 additions and 19 deletions
|
@ -2,4 +2,5 @@
|
|||
|
||||
## Disable xpack plugins
|
||||
xpack.infra.enabled: false
|
||||
xpack.slo.enabled: false
|
||||
xpack.slo.enabled: false
|
||||
xpack.observabilityAIAssistant.enabled: false
|
||||
|
|
|
@ -22,8 +22,11 @@ export const OBSERVABILITY_PROJECT_SETTINGS = [
|
|||
settings.OBSERVABILITY_APM_ENABLE_TABLE_SEARCH_BAR,
|
||||
settings.OBSERVABILITY_APM_ENABLE_SERVICE_INVENTORY_TABLE_SEARCH_BAR,
|
||||
settings.OBSERVABILITY_ENTITY_CENTRIC_EXPERIENCE,
|
||||
settings.OBSERVABILITY_AI_ASSISTANT_SIMULATED_FUNCTION_CALLING,
|
||||
settings.OBSERVABILITY_AI_ASSISTANT_SEARCH_CONNECTOR_INDEX_PATTERN,
|
||||
settings.OBSERVABILITY_LOGS_DATA_ACCESS_LOG_SOURCES_ID,
|
||||
settings.OBSERVABILITY_ENABLE_STREAMS_UI,
|
||||
];
|
||||
|
||||
export const OBSERVABILITY_AI_ASSISTANT_PROJECT_SETTINGS = [
|
||||
settings.OBSERVABILITY_AI_ASSISTANT_SIMULATED_FUNCTION_CALLING,
|
||||
settings.OBSERVABILITY_AI_ASSISTANT_SEARCH_CONNECTOR_INDEX_PATTERN,
|
||||
];
|
||||
|
|
|
@ -59,7 +59,5 @@
|
|||
"@kbn/i18n-react",
|
||||
"@kbn/inference-tracing"
|
||||
],
|
||||
"exclude": [
|
||||
"target/**/*"
|
||||
]
|
||||
"exclude": ["target/**/*"]
|
||||
}
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
{
|
||||
"type": "plugin",
|
||||
"id": "@kbn/serverless-observability",
|
||||
"owner": [
|
||||
"@elastic/obs-ux-management-team"
|
||||
],
|
||||
"owner": ["@elastic/obs-ux-management-team"],
|
||||
"group": "observability",
|
||||
"visibility": "private",
|
||||
"description": "Serverless customizations for observability.",
|
||||
|
@ -11,11 +9,7 @@
|
|||
"id": "serverlessObservability",
|
||||
"browser": true,
|
||||
"server": true,
|
||||
"configPath": [
|
||||
"xpack",
|
||||
"serverless",
|
||||
"observability"
|
||||
],
|
||||
"configPath": ["xpack", "serverless", "observability"],
|
||||
"requiredPlugins": [
|
||||
"serverless",
|
||||
"observability",
|
||||
|
@ -24,9 +18,7 @@
|
|||
"discover",
|
||||
"security"
|
||||
],
|
||||
"optionalPlugins": [
|
||||
"streams"
|
||||
],
|
||||
"optionalPlugins": ["streams", "observabilityAIAssistant"],
|
||||
"requiredBundles": []
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,10 @@
|
|||
|
||||
import type { PluginInitializerContext, Plugin, CoreSetup } from '@kbn/core/server';
|
||||
|
||||
import { OBSERVABILITY_PROJECT_SETTINGS } from '@kbn/serverless-observability-settings';
|
||||
import {
|
||||
OBSERVABILITY_PROJECT_SETTINGS,
|
||||
OBSERVABILITY_AI_ASSISTANT_PROJECT_SETTINGS,
|
||||
} from '@kbn/serverless-observability-settings';
|
||||
import type {
|
||||
ServerlessObservabilityPluginSetup,
|
||||
ServerlessObservabilityPluginStart,
|
||||
|
@ -27,7 +30,11 @@ export class ServerlessObservabilityPlugin
|
|||
constructor(_initializerContext: PluginInitializerContext) {}
|
||||
|
||||
public setup(_coreSetup: CoreSetup, pluginsSetup: SetupDependencies) {
|
||||
pluginsSetup.serverless.setupProjectSettings(OBSERVABILITY_PROJECT_SETTINGS);
|
||||
pluginsSetup.serverless.setupProjectSettings([
|
||||
...OBSERVABILITY_PROJECT_SETTINGS,
|
||||
...(pluginsSetup.observabilityAIAssistant ? OBSERVABILITY_AI_ASSISTANT_PROJECT_SETTINGS : []),
|
||||
]);
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { ObservabilityAIAssistantServerSetup } from '@kbn/observability-ai-assistant-plugin/server';
|
||||
import { ServerlessPluginSetup } from '@kbn/serverless/server';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
|
@ -17,4 +18,5 @@ export interface StartDependencies {}
|
|||
|
||||
export interface SetupDependencies {
|
||||
serverless: ServerlessPluginSetup;
|
||||
observabilityAIAssistant?: ObservabilityAIAssistantServerSetup;
|
||||
}
|
||||
|
|
|
@ -28,5 +28,6 @@
|
|||
"@kbn/discover-plugin",
|
||||
"@kbn/security-plugin",
|
||||
"@kbn/streams-plugin",
|
||||
"@kbn/observability-ai-assistant-plugin",
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue