Quantcast
Channel: InfluxDB - Grafana Labs Community Forums
Viewing all articles
Browse latest Browse all 203

Add variables to Grafana using influxDB V2 flux language

$
0
0

i’m not a Grafana expert , i want to add variables to my dashboard so here’s my querry :

from(bucket: "test4")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "FourFrittage")
  |> filter(fn: (r) => r["_field"] == "variable_value")
  |> filter(fn: (r) => r["variable_name"] == "${variable_name}") 
  |> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
  |> yield(name: "last")

this queery does’nt give the expected result. I’m expecting to have variable where i can choose whcih variable to display in my time series plugin:

image

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 203

Trending Articles