A roller body for a roller bearing includes at least one cavity extending from an end face of the roller body, at least one retaining element is disposed in the cavity, and at least one sensor is disposed in the cavity, such as in or on the retaining element. The sensor is at least partially surrounded by an elastic material in a protective manner.