Hi @marcelrissardi, Have you fixed this issue? I have the same problem with this thread and I tried long time to fixed it but all failed.
Below is my step. ( Grafana7.3+Influxdb2.0-rc3)
from(bucket: "flower") |> range(start: v.timeRangeStart, stop:v.timeRangeStop) |> filter(fn: (r) => r._measurement == "mem" and r._field == "used_percent" )
This query will show all serials of all hosts no matter I select one or more hosts because the query cmd doesn’t filter the host tag.
When I add a tag filter in the query cmd (add 'r.host == "${host}"'
), the grafana has the right action. No matter which one host I selecte, it shows the right host data. But if I select more than one host, it shows no data (no error shows).
from(bucket: “flower”)
|> range(start: v.timeRangeStart, stop:v.timeRangeStop)
|> filter(fn: (r) =>
r._measurement == “mem” and
r.host == “${host}” and
r._field == “used_percent”
)
If you have fixed your problem, can you share your steps ? Thank you very much.