-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
need new platform plugin access to kibana.index
config value currently available in legacy plugins
#46240
Comments
Pinging @elastic/kibana-platform |
Based on the discussion in #46705 it seems to make sense to expose the export interface PluginInitializerContext<ConfigSchema = unknown> {
opaqueId: PluginOpaqueId;
env: { mode: EnvironmentMode };
logger: LoggerFactory;
config: {
/* Global configuration from the 'kibana' configPath */
kibana$: Observable<KibanaConfigSchema>;
create: <T = ConfigSchema>() => Observable<T>;
createIfExists: <T = ConfigSchema>() => Observable<T | undefined>;
};
} |
@rudolf what other "kibana-wide" config values we will provide there? |
These are all the current values, we know
|
I'm curious about |
It seems like But I can imagine that |
@rudolf plugins might want to store their artifacts somewhere in |
We also need access to the |
We discussed this in our Platform Weekly meeting today and decided to move forward with providing a non-optimal but quick solution for now:
This will allow us to move quickly during the migration period so that we can reduce the number of decisions that need to be made right now by having one place where we can add any other needed global config keys. Exampleexport interface PluginInitializerContext<ConfigSchema = unknown> {
opaqueId: PluginOpaqueId;
env: { mode: EnvironmentMode };
logger: LoggerFactory;
config: {
/**
* Global configuration
* Note: naming not final here, do we have any existing convention for naming deprecated properties?
* @deprecated
*/
globalConfig__deprecated$: Observable<GlobalConfigSchema>;
create: <T = ConfigSchema>() => Observable<T>;
createIfExists: <T = ConfigSchema>() => Observable<T | undefined>;
};
} |
For the Make it Action project, we're adding a new index to be managed by Kibana to store "events" that have occurred with alerts and actions. Current plan is to name this index
.kibana-event-log
(and there are other resources like an index template and ilm policy, will be using the same.kibana-event-log
prefix.For legacy plugins, this value is available as
config.get('kibana.index')
, however this config value does not appear to be available in new platform plugins (np plugins only see their own config). Guessing this would be made available by some core or platform API, or perhaps another NP plugin, any of which is fine.The text was updated successfully, but these errors were encountered: