Skip to content

Commit

Permalink
Add enabled config to plugins that need it
Browse files Browse the repository at this point in the history
  • Loading branch information
joshdover committed Mar 23, 2020
1 parent 10afcf4 commit a49bc02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/apm_oss/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import { APMOSSPlugin } from './plugin';

export const config = {
schema: schema.object({
enabled: schema.boolean({ defaultValue: true }),
transactionIndices: schema.string({ defaultValue: 'apm-*' }),
spanIndices: schema.string({ defaultValue: 'apm-*' }),
errorIndices: schema.string({ defaultValue: 'apm-*' }),
Expand Down
1 change: 1 addition & 0 deletions src/plugins/timelion/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { schema, TypeOf } from '@kbn/config-schema';

export const configSchema = schema.object(
{
enabled: schema.boolean({ defaultValue: true }),
ui: schema.object({ enabled: schema.boolean({ defaultValue: false }) }),
graphiteUrls: schema.maybe(schema.arrayOf(schema.string())),
},
Expand Down

0 comments on commit a49bc02

Please sign in to comment.