feat: mock plugins with real configs
so you no longer need to comment out xpack config in the kibana.dev.yml
This commit is contained in:
18
plugins/apm/index.js
Normal file
18
plugins/apm/index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
export function apm(kibana) {
|
||||
return new kibana.Plugin({
|
||||
name: 'apm',
|
||||
id: 'apm',
|
||||
configPrefix: 'xpack.apm',
|
||||
config(Joi) {
|
||||
return Joi.object({
|
||||
ui: Joi.object({
|
||||
enabled: Joi.boolean().default(true),
|
||||
}).default(),
|
||||
enabled: Joi.boolean().default(true),
|
||||
indexPattern: Joi.string().default('apm*'),
|
||||
minimumBucketSize: Joi.number().default(15),
|
||||
bucketTargetCount: Joi.number().default(27),
|
||||
}).default();
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user