influxDB data to Grafana - get specific measurment field

Hi, I am new to Grafana and I have no idea how to show data from fields in graph because I have two measurmens created. For example, I want to get the data from this path “Zavalzovaci System DB → Senzory Vlhkosti → senzor_1” to show in Grafana graph, but I can not find the correct Grafana code to do that.


Hello @Kristina_Pavlickova,
I’m sorry I’m a little confused. Are you using the InflxuDB UI or Grafana?
It looks like you’re using the InfluxDB UI.

You can select for both measurements and then click on the field you want.
Finally you can switch over to the Script editor which is on the left of the submit button to see the equivalent Flux script. It would look something like:

from(bucket: "Zavlazovaci System DB")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "Senzory Vlhkosti" or r["_measurement"] == "Vodna Nadrz 1")
  |> filter(fn: (r) => r["_field"] == "senzor_1")