influxdata / chronograf

Open source monitoring and visualization UI for the TICK stack
https://www.influxdata.com/time-series-platform/chronograf/
Other
1.5k stars 257 forks source link

Chronograf dashboard template variables do not accept v records #5975

Open smartshader opened 2 years ago

smartshader commented 2 years ago

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:

Config: No non-default config values used.

sranka commented 2 years ago

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.