Automated clustering of VMs for scalable cloud monitoring and management