NPU Exporter Cannot Obtain the Current Container Information After kubelet Is Restarted

Symptom

After the user restarts kubelet, NPU Exporter does not report container information.

Cause Analysis

After kubelet is restarted, the new dockershim.sock file is created. However, NPU Exporter obtains the old dockershim.sock file and cannot obtain the current container data.

Solution

Use either of the following methods to rectify the fault: