From 0c78e59f333572faabf1f045be214fb382959775 Mon Sep 17 00:00:00 2001 From: Timothy Sullivan Date: Fri, 3 Jun 2016 12:19:51 -0700 Subject: [PATCH] ops: set default interval for stat collection to 5 seconds When polling the NodeJS server for operations data every 10 seconds, the data become coarse-looking when viewing it at fine-grain detail. If you aggregate the data into a date histogram and the bucket size is 10 seconds, then there'll be missing data in every other bucket. That is, unless the time bounds of the buckets line up PERFECTLY with the time that operations data was collected, which is unlikely --- config/kibana.yml | 4 ++-- docs/kibana-yml.asciidoc | 2 +- src/server/config/schema.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/kibana.yml b/config/kibana.yml index 8694f65c61a5a..2351c3eb70d95 100644 --- a/config/kibana.yml +++ b/config/kibana.yml @@ -88,5 +88,5 @@ # logging.verbose: false # Set the interval in milliseconds to sample system and process performance -# metrics. Minimum is 100ms. Defaults to 10000. -# ops.interval: 10000 +# metrics. Minimum is 100ms. Defaults to 5000. +# ops.interval: 5000 diff --git a/docs/kibana-yml.asciidoc b/docs/kibana-yml.asciidoc index a10dce1953e69..43272c0d73291 100644 --- a/docs/kibana-yml.asciidoc +++ b/docs/kibana-yml.asciidoc @@ -42,7 +42,7 @@ 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. +`ops.interval`:: *Default: 5000* Set the interval in milliseconds to sample system and process performance metrics. The minimum value is 100. `status.allowAnonymous`:: *Default: false* If authentication is enabled, setting this to `true` allows unauthenticated users to access the Kibana server status API and status page. diff --git a/src/server/config/schema.js b/src/server/config/schema.js index 3fb32f84c0131..55f4d31bad6c3 100644 --- a/src/server/config/schema.js +++ b/src/server/config/schema.js @@ -86,7 +86,7 @@ module.exports = () => Joi.object({ .default(), ops: Joi.object({ - interval: Joi.number().default(10000), + interval: Joi.number().default(5000), }), plugins: Joi.object({