The consumer price index (CPI) in Canada rose 2.5 percent year on year in July, according to data from Statistics Canada on Tuesday.