Tell your doctor. It might or might not be the metformin.
Metformin is usually associated with gastric problems especially if too many carbs are eaten. Your doctor would normally check your liver and kidney functions through blood tests during the year to make sure the metformin isn't having adverse effects (although metformin is one of the safest drugs for diabetes).
In any case, you need to tell your doctor.