Perform daily maintenance on monitoring table

(cherry picked from commit b86fedf1a331d991a95fc10d7e11c6e5e25b2011)