[config] add ops.interval config option

This commit is contained in:
Timothy Sullivan 2016-02-29 15:55:17 -07:00
parent 71cbe048c9
commit 2c828aedff
4 changed files with 10 additions and 1 deletions

View file

@ -79,3 +79,7 @@
# Set the value of this setting to true to log all events, including system usage information
# and all requests.
# logging.verbose: false
# Set the interval in milliseconds to sample system and process performance
# metrics. Minimum is 100ms. Defaults to 10000.
# ops.interval: 10000

View file

@ -39,3 +39,4 @@ retrying.
error messages.
`logging.verbose`:: *Default: false* Set the value of this setting to `true` to log all events, including system usage
information and all requests.
`ops.interval`:: *Default: 10000* Set the interval in milliseconds to sample system and process performance metrics. Minimum is 100ms. Defaults to 10 seconds.

View file

@ -81,6 +81,10 @@ module.exports = () => Joi.object({
})
.default(),
ops: Joi.object({
interval: Joi.number().default(10000),
}),
plugins: Joi.object({
paths: Joi.array().items(Joi.string()).default([]),
scanDirs: Joi.array().items(Joi.string()).default([]),

View file

@ -39,7 +39,7 @@ module.exports = function (kbnServer, server, config) {
server.register({
register: require('good'),
options: {
opsInterval: 5000,
opsInterval: config.get('ops.interval'),
requestHeaders: true,
requestPayload: true,
reporters: [