Debug log in getting metrics