The invention discloses a device for online measuring the wall thickness of a hot-rolled metal pipe by using gamma rays, which comprises a horizontally movable field measurement C-shaped box, a gamma ray detector, a charge coupled device (CCD) camera, a radioactive source, a field control box with a programmable logic controller (PLC) and a measurement signal conversion unit, an industrial personal computer main cabinet, an exchanger, a database server, a terminal set, a field cooling circulation water channel, a gas circuit and an infrared temperature measurer. The device realizes continuous automatic measurement on a hot-rolled metal pipe production line, and simultaneously can output control signals for realizing the automatic closed-loop control of a rolling mill. The CCD camera takes part in eccentricity correction calculation, so using restrictions to the measurement device are relaxed, and the measurement accuracy is improved and is lower than + / -0.2 percent. Simultaneously, measurement data is digitally transmitted, so the device realizes the long-distance and anti-interference transmission of the measurement signals and effectively solves the problems of long distance between a measurement field and an operating room and intensive field interference.