New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify nodes stats API #4347
Simplify nodes stats API #4347
Conversation
LGTM, I would love @clintongormley to try it out as well... |
Heya This doesn't seem to support the indices-metrics, eg:
Also doesn't support the |
Fixed the indices metrics. Regarding supporting the Requires some refactoring around the |
@clintongormley added the level parameter for "indices" and "shards", however "cluster" does not make a lot of sense in a response, which is per node... will squash it into one commit after review |
True... perhaps should be node, indices, shards ? |
I like it, wait with reviewing, will put that in first |
Hi, I've had a quick look to see how things will impact the cluster stats end point I work on now. Things look good from that perspective (it will even allow for removing some code in the cluster stats end point). Two comments:
Perhaps we want to make level multi-valued. If we do so, we allow people to get both aggregates and detailed level if need be. |
@bleskes I will also create the additive behaviour here when the thx for the input |
Pushed to support |
First, this breaks backwards compatibility! * Removed /_cluster/nodes/stats endpoint * Excpect the stats types not as parameters, but as part of the URL * Returning all indices stats by default, returning all nodes stats by default * Supporting groups & types in nodes stats now as well * Updated documentation & tests accordingly * Allow level parameter for "shards" and "indices" (cluster does not make sense here) Closes elastic#4057
…` to `/_nodes` The "_cluster" prefix has been removed in Elasticsearch 1.0. The "/_nodes" endpoint is supported since ~ version 0.19, so this doesn't break backwards compatibility. Related: * elastic/elasticsearch#4055 * elastic/elasticsearch#4065 * elastic/elasticsearch#4347 * elastic/elasticsearch#4608
First, this breaks backwards compatibility!
Closes #4057