Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.9] Enable all remaining metric aggregations on counters (#97974) #98294

Merged

Conversation

salvatore-campagna
Copy link
Contributor

Backport

This is an automatic backport to 8.9 of:

Questions ?

Please refer to the Backport tool documentation

Here we enable aggregations previously not allowed on fields of type counter.
The decision of enabling such aggregations even if the result is "meaningless"
for counters has been taken to favour TSDB adoption.

Aggregations now allowed, other than the existing ones, include:
* avg
* box plot
* cardinality
* extended stats
* median absolute deviation
* percentile ranks
* percentiles
* stats
* sum
* value count

I included tests for the weighted average and matrix stats aggregations too.

Resolves elastic#97882

(cherry picked from commit d0b2f65)

# Conflicts:
#	rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/tsdb/120_counter_fields.yml
@github-actions
Copy link
Contributor

github-actions bot commented Aug 8, 2023

Documentation preview:

@salvatore-campagna salvatore-campagna merged commit 2649050 into elastic:8.9 Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants