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

Chronograf dashboard template variables do not accept v records #5975

Open
smartshader opened this issue Jul 6, 2022 · 1 comment
Open

Comments

@smartshader
Copy link

Steps to reproduce:

  1. Run chronograf with docker from latest image docker run -p 8888:8888 -d --name chronograf --rm chronograf
  2. Create influxdb connection
  3. Create new dashboard
  4. Create template variable with v record
from(bucket: <bucket-name>)
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> keep(columns: ["_value"])

Expected behavior:
Expect template variable to be created in the dashboard.

Actual behavior:
I get error flux query failed to execute and in the console I can see undefined identifier v
image

Environment info:

  • Chronograf version: 1.9.4
  • OS Version: Mac OS Monterey 12.4
  • Docker version: 20.10.16
  • InfluxDB Version: 2.1.1 Server: 657e183 Frontend: cc65325
  • Browser: Firefox developer edition 103.0b3 (64-bit)

Config:
No non-default config values used.

@sranka
Copy link
Contributor

sranka commented Jul 7, 2022

Thank you @smartshader for posting an issue. Flux dashboard variables now cannot depend on other variables. Additionally, variable values are not re-fetched when the time range changes.

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

No branches or pull requests

2 participants