This version of the OpenSearch documentation is no longer maintained. For the latest version, see the current documentation. For information about OpenSearch version maintenance, see Release Schedule and Maintenance Policy.
Metric aggregations let you perform simple calculations such as finding the minimum, maximum, and average values of a field.
Types of metric aggregations
There are two types of metric aggregations: single-value metric aggregations and multi-value metric aggregations.
Single-value metric aggregations
Single-value metric aggregations return a single metric, for example,
Multi-value metric aggregations
Multi-value metric aggregations return more than one metric. These include
Supported metric aggregations
OpenSearch supports the following metric aggregations:
- Extended stats
- Matrix stats
- Percentile ranks
- Scripted metric
- Top hits
- Value count