Fixed schema and hanlding of vm metrics.