fix metric url issue