Angela Merkel has served formal notice that she will lead the German wandering away from the American alliance.