Skip to content

[Feature Request] Add item count metric to field data cache stats API #19173

@peteralfonsi

Description

@peteralfonsi

Is your feature request related to a problem? Please describe

While debugging for #13862 @sgup432 mentioned it would have been convenient to have an item count stat for the field data cache. Today we only have evictions and memory size (total + per field).

Describe the solution you'd like

We should add an item_count metric to the existing _nodes/stats/indices/fielddata API. It can optionally be aggregated by field, like memory size is.

Related component

Other

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementEnhancement or improvement to existing feature or requestv3.4.0Issues and PRs related to version 3.4.0

Type

No type

Projects

Status

🆕 New

Status

New

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions