China's consumer price index (CPI), a main gauge of inflation, rose 2.1 percent year on year in October, the National Bureau of Statistics said Wednesday.