SELECT mean("mem")/mean("maxmem") AS used FROM "system" WHERE "object" = 'qemu' OR "object" = 'lxc' AND $timeFilter GROUP BY time($__interval), "host" fill(null)
i use a query like this:
and alias by : $tag_hostCode:SELECT mean("mem")/mean("maxmem") AS used FROM "system" WHERE "object" = 'qemu' OR "object" = 'lxc' AND $timeFilter GROUP BY time($__interval), "host" fill(null)
afaics, you cannot do this with the graphical editor in grafana, but you can still enter the query manually