Hi All,
I have question on how to join tables in Flux.
I have one ‘bucket’ EnergyMeter which contains the readings (_measurement) of three energy meters (Normal, Dal and Gas) for a certain timestamp (_time).
InfluxDB now has a table for each of the three meters (0, 1 & 2).
I would like to have this information in one table, so per _time the values for the three meters. Think I should do that with join, correct?
This is my code:
How do I do this? Here is my queries so far, but it returns nothing. If I join only on two of the metrics, it works well. I want a result with all of _value_cpu, _value_ram, and _value_disk.
Thanks
cpu = ... // my query
ram = ... // my query
disk = ... // my query
cpuRam = join(
tables: {cpu: cpu, ram: ram},
on: ["_time", "region"]
)
join(
tables: {cpuRam: cpuRam, disk: disk},
on: ["_time", "region"]
)