mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[config] add ops.interval config option
This commit is contained in:
parent
71cbe048c9
commit
2c828aedff
4 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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([]),
|
||||
|
|
|
@ -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: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue