some insights provided by the /1.0/metrics API endpoint are also in the /1.0/instances?recursion=2 result. Namely, the path state.cpu.usage or state.distk.root.usage in the later call for a given instance. Both are also available in the metrics endpoint as lxd_cpu_seconds_total or lxd_filesystem_size_bytes.
Are the values in both endpoints coming from the same source, or are they retrieved differently?
The metrics documentation mentions it is resource heavy. Is the instance call cheaper?