The present invention relates to diagnostic apparatus and techniques for diagnosing and predicting failure in industrial machinery and, more particularly, to methods and apparatus for diagnosing the condition of rotating electrical and other machinery such as motors, generators, and gears wherein the diagnostics are integrated within the motor, generator, gear or other device.