Open
Description
We want to add another level "datastreams" in addition to the existing "shards" and "indices" to the indices stats API.
This level would group+aggregate index-stats by data-stream instead of returning stats by individual index. It would not otherwise change the response format and a datastream would simply appear as a single index to callers.
Indices covered by the request that are not part of a datastream would be included in the response the same way as they are at level "indices".
This is motivated by scalability concerns around the response sizes generated by this API for very larger clusters. Also bandwidth used by monitoring when calling this API every 10s or so for all indices becomes problematic for large index counts.
relates #77466