stubbing in monitoring endpoint