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

Query builder cannot express common queries #15563

Closed
desa opened this issue Oct 24, 2019 · 4 comments
Closed

Query builder cannot express common queries #15563

desa opened this issue Oct 24, 2019 · 4 comments
Assignees
Labels
difficulty/high This issue needs to be broken down into smaller units of work. pm/review team/ui

Comments

@desa
Copy link
Contributor

desa commented Oct 24, 2019

Related #15545

  1. See Query Builder: Add ability to group by columns #15984

  2. Get last value across all series for a time range

last

More of less the query we want to express is

from(bucket: "telegraf")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r._measurement == "disk")
  |> filter(fn: (r) => r._field == "used_percent")
  |> last()
  |> group()
@desa desa added the team/ui label Oct 24, 2019
@desa
Copy link
Contributor Author

desa commented Oct 24, 2019

@r1ckbrown cc

@desa desa added the difficulty/high This issue needs to be broken down into smaller units of work. label Oct 28, 2019
@desa
Copy link
Contributor Author

desa commented Oct 28, 2019

Plan is to add special functions to functions window.

@hoorayimhelping
Copy link
Contributor

related: #16076

@kristinarobinson
Copy link

Will solve with flows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty/high This issue needs to be broken down into smaller units of work. pm/review team/ui
Projects
None yet
Development

No branches or pull requests

4 participants