-
Notifications
You must be signed in to change notification settings - Fork 25.2k
top_metrics stabilization #51813
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
Comments
Pinging @elastic/es-analytics-geo (:Analytics/Aggregations) |
Pinging @elastic/es-docs (>docs) |
This adds support for returning the top "n" metrics instead of just the very top. Relates to elastic#51813
This adds support for returning the top "n" metrics instead of just the very top. Relates to #51813
Another question: should top_metrics preserve the type of the metrics or continue to cast them all to |
Hmmmm. That's a good question. Preserve type
Cast to Double
Perhaps we could have something similar to "_as_string" but for the type? |
The pipeline agg can fetch the double either way, I think. The trick is whether we preserve the type when we accumulate them and when we render them. Without that, for example, dates will look like millis since epoch. OTOH, no other agg does this. But it sounds like a good thing to do. I'm happy to wait some on that too, but I figure it'd be nice to decide while we've got the experimental label. |
This adds support for returning the top "n" metrics instead of just the very top. Relates to elastic#51813
This adds support for returning the top "n" metrics instead of just the very top. Relates to #51813
I talked to folks a bit and decided that, yes, I should return variables in their original type. In this case that means preserving their "formatter" and deciding between |
I've opened #53288 for preserving types. If we're good with that I think all that is left for this is for me to take a fresh eye to the docs. |
* Removes experimental. * Replaces `"v"` (for value) with `"m"` (for metric). * Move the note about tiebreaking into the list of limitations of the sort. * Explain how you ask for `metrics`. * Clean up some wording. * Link to the docs from `top_metrics`. Closes elastic#51813
* Removes experimental. * Replaces `"v"` (for value) with `"m"` (for metric). * Move the note about tiebreaking into the list of limitations of the sort. * Explain how you ask for `metrics`. * Clean up some wording. * Link to the docs from `top_metrics`. Closes #51813
* Removes experimental. * Replaces `"v"` (for value) with `"m"` (for metric). * Move the note about tiebreaking into the list of limitations of the sort. * Explain how you ask for `metrics`. * Clean up some wording. * Link to the docs from `top_metrics`. Closes elastic#51813
* Removes experimental. * Replaces `"v"` (for value) with `"m"` (for metric). * Move the note about tiebreaking into the list of limitations of the sort. * Explain how you ask for `metrics`. * Clean up some wording. * Link to the docs from `top_metrics`. Closes #51813
Uh oh!
There was an error while loading. Please reload this page.
We're getting pretty close to merging the new
top_metrics
aggregation (#51155). It'll be marked "experimental" because we will be looking into a few features soon that, if we can't implement them, will change the response format:size
parameter to return the top few metrics. Not many though.The text was updated successfully, but these errors were encountered: