Skip to content
Merged
3 changes: 2 additions & 1 deletion config/serverless.oblt.logs_essentials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

## Disable xpack plugins
xpack.infra.enabled: false
xpack.slo.enabled: false
xpack.slo.enabled: false
xpack.observabilityAIAssistant.enabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,5 @@
"@kbn/i18n-react",
"@kbn/inference-tracing"
],
"exclude": [
"target/**/*"
]
"exclude": ["target/**/*"]
}
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
{
"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.",
"plugin": {
"id": "serverlessObservability",
"browser": true,
"server": true,
"configPath": [
"xpack",
"serverless",
"observability"
],
"configPath": ["xpack", "serverless", "observability"],
"requiredPlugins": [
"serverless",
"observability",
Expand All @@ -24,9 +18,7 @@
"discover",
"security"
],
"optionalPlugins": [
"streams"
],
"optionalPlugins": ["streams", "observabilityAIAssistant"],
"requiredBundles": []
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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 {};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -17,4 +18,5 @@ export interface StartDependencies {}

export interface SetupDependencies {
serverless: ServerlessPluginSetup;
observabilityAIAssistant?: ObservabilityAIAssistantServerSetup;
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@
"@kbn/discover-plugin",
"@kbn/security-plugin",
"@kbn/streams-plugin",
"@kbn/observability-ai-assistant-plugin",
]
}