Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add global ordinal info to stats APIs. (#94500)
This change adds: * Total global ordinal build time for all fields and per field. * Max shard value count per field. The value count is per shard and of the shard with the highest count. Reporting value on index level or across indices is too expensive to report or keep track of. This is added to common stats, which is exposed in several stats APIs. The following api call: ``` GET /_nodes/stats?filter_path=nodes.*.indices.fielddata&fields=key,key2 ``` Returns: ``` { "nodes": { "pcMNy4GsQ8ef6Rw-bI2EFg": { "indices": { "fielddata": { "memory_size_in_bytes": 2552, "evictions": 0, "fields": { "key2": { "memory_size_in_bytes": 1320 }, "key": { "memory_size_in_bytes": 1232 } }, "global_ordinals": { "build_time_in_millis": 8, "fields": { "key2": { "build_time_in_millis": 4, "shard_max_value_count": 4 }, "key": { "build_time_in_millis": 4, "shard_max_value_count": 4 } } } } } } } } ```
- Loading branch information