Temperature of the pumped volume of an ytterbium doped material has been measured while laser action is taking place. This is achieved by recording green emissions at 530 and 550 nm from Er3+ impurities. These emissions result from energy transfer upconversion processes between Yb3+ and Er3+. Experiments performed on a Yb3+:CaGdAlO4 crystal show the effect of pump power and laser wavelength on the sample internal temperature. Temperature variation along the sample length has also been measured. This method can complement data obtained by thermal cameras which can only access surface temperatures in most laser materials.