An x-ray apparatus includes a source configured to generate electrons, a target configured to produce x-rays upon impingement of electrons, and a detector configured to detect electrons penetrating the target or reflected from the incident face of the target, indicative of damage to the target.