in influxdb 1.x I used a dashboard variable to repeat a row of a dashboard.
In influxdb 1.x during creation of the query I get a popup window to choose variables from.
Now in influxdb 2.0 and flux queries I don’t know how to access the dashboard variables to get repeated rows as well:
I tried also:
|> filter(fn: (r) => r["host"] == ${myvariable})
but got this error:
invalid: compilation failed: error at @8:37-8:38: invalid expression: invalid token for primary expression: ILLEGAL
Can someone please tell me how to get the variable into my flux query?
I think you should rather ask the question in the Grafana forum, because I think this is a Grafana problem, how the variables come from the dashboard into the flux queries and how they are called there?
I have managed to replicate the call of Grafana variables as you stated.
Now i want to build it into a part of a text. What i want to do is a Query that looks like this: