Skip to content

[5.x][status api] opt in to v6 metrics#10481

Merged
jbudz merged 4 commits intoelastic:5.xfrom
jbudz:status-api-5.x
Feb 27, 2017
Merged

[5.x][status api] opt in to v6 metrics#10481
jbudz merged 4 commits intoelastic:5.xfrom
jbudz:status-api-5.x

Conversation

@jbudz
Copy link
Copy Markdown
Contributor

@jbudz jbudz commented Feb 21, 2017

This is an opt-in backport of #10180, returning only the latest metrics from the status api. It can be enabled by setting status.v6ApiFormat: true in kibana.yml

});
}

return reply({
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This return should be legacy format with without the nested version information. Metrics also needs to be of the legacy format.

Comment thread src/server/status/metrics.js Outdated
kbnServer.metrics = new Samples(12);

server.plugins['even-better'].monitor.on('ops', function (event) {
kbnServer.v6Metrics = getV6Metrics({ event, config });
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are your thoughts on swapping this, creating kbnServer.legacyMetrics. Reason being is we are exposing the cgroup information via this interface.

Comment thread src/server/config/schema.js Outdated
status: Joi.object({
allowAnonymous: Joi.boolean().default(false)
allowAnonymous: Joi.boolean().default(false),
v6Api: Joi.boolean().default(true)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should default this to false.

@jbudz
Copy link
Copy Markdown
Contributor Author

jbudz commented Feb 27, 2017

jenkins, test this

Copy link
Copy Markdown
Member

@tylersmalley tylersmalley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants