No values shown in variable

Hi!

I can’t get a variable to work in InfluxDB 2.0 Beta 4. Query is:

from(bucket: “dev”)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: ® => r._measurement == “disk”)
|> filter(fn: ® => r.path == “/”)
|> keep(columns: [“host”])
|> unique(column: “host”)

Result is a list with my hosts. When I hover over the variable in Data Explorer, there is only the value “Failed to Load” shown. And the dashboards using the variable get no results, too. Could you guys please help me with that?

Hello @rene,
Welcome!
The query works for me. I just had to make sure that my dashboard date selection was far enough back in time because I don’t always have telegraf running. Could that be the issue you’re running into? If that doesn’t fix it, can you please share your Influxdb and Telegraf logs?

Hi @Anaisdg,
thank you very much for your quick response! You were right on the time thing. I fixed this but the problem remains.

Here is my Data Explorer:

The Dashboard also shows “No Values” on the ‘Linux’ variable.

I copied the script from the variable to Data Explorer and submitted. Hovered over the variable ‘Linux’ and had a look at the dashboard. All this should be in the debug log, but I can’t upload it because I’m a new user. So you can find it at pastebin 7L0i7r77

You had any more hints for me, what I’m doing wrong with the variable?