Add monitorHandler for /monitor route.