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

Open
desa opened this issue Oct 24, 2019 · 3 comments

Comments

@desa
Copy link
Member

@desa desa commented Oct 24, 2019

Related #15545

  1. See #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

This comment has been minimized.

Copy link
Member Author

@desa desa commented Oct 24, 2019

@desa

This comment has been minimized.

Copy link
Member Author

@desa desa commented Oct 28, 2019

Plan is to add special functions to functions window.

@hoorayimhelping

This comment has been minimized.

Copy link
Contributor

@hoorayimhelping hoorayimhelping commented Dec 2, 2019

related: #16076

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.