[BUG] Level aggregations for node stats API should be processed on data nodes #13340
Labels
bug
Something isn't working
Cluster Manager
Other
Stats
v2.16.0
Issues and PRs related to version 2.16.0
Describe the bug
While reviewing #13237, I noticed that the node stats API does not pass the value of
level
parameter from coordinator to data node. Taking example of indices stats, that is inefficient due to 2 reasons:Related component
Other
To Reproduce
The writeTo method is serializing the most granular information for transport layer and the filtering is happening on the rest layer
Expected behavior
The data nodes should return only the information used for preparing the client response
Additional Details
Plugins
Please list all plugins currently enabled.
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: