Alpine's Fernando Alonso will start from 17th on the grid after a shock exit in Q1 ahead of the Monaco Grand Prix.