disable metrics in stats socket and cores in metrics [ci skip]