From 2c828aedffd5126fb0ebb62066d4a3d5afefcef7 Mon Sep 17 00:00:00 2001 From: Timothy Sullivan Date: Mon, 29 Feb 2016 15:55:17 -0700 Subject: [PATCH] [config] add ops.interval config option --- config/kibana.yml | 4 ++++ docs/kibana-yml.asciidoc | 1 + src/server/config/schema.js | 4 ++++ src/server/logging/index.js | 2 +- 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/config/kibana.yml b/config/kibana.yml index e513fe4c23b47..37c4292d6e425 100644 --- a/config/kibana.yml +++ b/config/kibana.yml @@ -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 diff --git a/docs/kibana-yml.asciidoc b/docs/kibana-yml.asciidoc index 310ca2005f00d..3e0e4ded41a85 100644 --- a/docs/kibana-yml.asciidoc +++ b/docs/kibana-yml.asciidoc @@ -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. diff --git a/src/server/config/schema.js b/src/server/config/schema.js index 6f000908579fc..e6306282c2fcc 100644 --- a/src/server/config/schema.js +++ b/src/server/config/schema.js @@ -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([]), diff --git a/src/server/logging/index.js b/src/server/logging/index.js index ba3bbe3ece35d..7164216e15a6e 100644 --- a/src/server/logging/index.js +++ b/src/server/logging/index.js @@ -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: [