Skip to content

Keyword support or alternative for top_metrics aggregation #64774

Closed
@dgieselaar

Description

@dgieselaar

In APM, we use a top_hits aggregation in some places to get certain values for the UI. E.g., if we are aggregation over service.name, we also need agent.name or each value of service.name. A top_hits aggregation can be costly, especially when there are many buckets.

Recently top_metrics was introduced as a lighter, faster alternative to top_hits. However, it does not support keywords (yet).

We would benefit from having top_metrics support keywords or a different aggregation that does the same, but for keywords.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions