Support custom query in pt-heartbeat lag detection