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

[Feature request] Support influxdb's SLIMIT Feature #7232

Closed
ryanjin opened this Issue Jan 12, 2017 · 2 comments

Comments

Projects
None yet
5 participants
@ryanjin

ryanjin commented Jan 12, 2017

Is it possible to support influxdb's SLIMIT Feature?

https://docs.influxdata.com/influxdb/v1.1//query_language/data_exploration/#the-limit-and-slimit-clauses

It is useful ,ie if somebody want to show the top 10 high avg load pc from the whole datacenter.

@Kaacz

This comment has been minimized.

Show comment
Hide comment
@Kaacz

Kaacz Jan 12, 2017

Why to use complex "select .. order by .. slimit ..", when function top() exists? For this case to show top-ten table I use simply:
SELECT top("load","hostname", 10) AS load FROM "servers" WHERE $timeFilter
and Override relative time last 2m for 1m sampling...
I have used it to show top-ten IRMS power load in datacenter.

Kaacz commented Jan 12, 2017

Why to use complex "select .. order by .. slimit ..", when function top() exists? For this case to show top-ten table I use simply:
SELECT top("load","hostname", 10) AS load FROM "servers" WHERE $timeFilter
and Override relative time last 2m for 1m sampling...
I have used it to show top-ten IRMS power load in datacenter.

@exbane

This comment has been minimized.

Show comment
Hide comment
@exbane

exbane Jan 13, 2017

+1 for this.. The TOPN function doesn't seem to work properly for InfluxDB data. Even if you say TOP 10 it still lists every object in the dataset.

exbane commented Jan 13, 2017

+1 for this.. The TOPN function doesn't seem to work properly for InfluxDB data. Even if you say TOP 10 it still lists every object in the dataset.

@daniellee daniellee closed this in 2f5814d Mar 9, 2017

@daniellee daniellee added this to the 4.3.0 milestone Mar 9, 2017

daniellee added a commit that referenced this issue Mar 9, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment