I have two measurements in my InfluxDB, say, mem_used
and mem_ available
.
I tried to query across those measurements and do a mathematics with
SELECT mean("mem_used_value") / mean("mem_available_value") FROM
(
SELECT mean("value") AS "mem_used_value",
mean("value") AS "mem_available_value"
FROM "dbname"."autogen"."mem_used",
"dbname"."autogen"."mem_available"
GROUP BY time(1m)
)
GROUP BY time(1m)
The result of the query is very weird, and I was wondering if it’s possible for InfluxDB to perform a mathematics across measurements.
I have did some research about this feature and found the issue 3552 Mathematics across measurements is still opening. However, it was requested three years ago.
Is there any approach to do this? any advice is welcome.