Overheating and arching in a transformer can liberate a variety of gases that can be used to pinpoint potential problem areas and help avoid catastrophic failures.