The evolution of the CMS monitoring infrastructure