-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Top N of an Avg Value #2467
Comments
related to #1821 |
+1 |
1 similar comment
+1 |
+1 |
This would be very useful in queries such as: `SELECT sum(value) FROM requests WHERE time > now() - 15m GROUP BY time(30s),host,path`` when there are many different 'path' labels for displaying in something like Grafana. Currently, with no way to use top I get back ~100 results, when I really only want to see the top 10 or so. |
using Limit and orderby should resolve this? |
As mentioned in my post to the mailing list we are experimenting with simplifying our open GitHub Issues. This feature request has been rolled into an aggregate issue for all function requests, so that we can close this issue until we are ready to work on it. You may continue to make comments here. Closing the issue does not mean we are rejecting this idea. |
Something like this
select top(mean(value),10) from /ResourceName [0-9].Metric 120/ where time < 1428734700s and time > 1428733380s
Which would first get the mean of value and then return the 10 highest. Can this be done?
The text was updated successfully, but these errors were encountered: