CPI tells you how much prices have changed, it doesn't explain the source of the changes (and, particularly relevantly, it doesn't measure isolate effects of changes in the supply of dollars chasing the good -- that would be attributed to the degree of elasticity -- vs. other influences on the price of an item.)