Skip to content

Replace default_metric with average in the aggregate_metric_double #128356

@gmarouli

Description

@gmarouli

Description

Currently, when downsampling a gauge field we keep the aggregate value in a new type aggregate_metric_double which consists of min, max, sum and value_count. This type supports accurately certain aggregations but not all, see here for more info.

After #136297, we will be able to use the default_metric which currently is the max to respond to these ES|QL stats queries.

However, we believe that the average is a more representative value. Furthermore, we believe that configuring the default_metric upon index creation is often a burden to the user.

For this reasons, we propose the following:

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions