An electrically insulating part for an electrical installation formed in a composite material, comprising an integrated device for monitoring deformations of said part, said device comprising an optic fiber in which at least a first Bragg grating is formed, the electrically insulating part being made from a composite material with a thermosetting matrix, the optic fiber comprising a mechanical protection sleeve made from polyimide material, and the optic fiber being covered by a coating comprising at least one compound of the thermosetting matrix.