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