def InitCounterConfig()

in src/worker/exporters/nvidia_exporter.py [0:0]


    def InitCounterConfig(self):
        global dcgm_config
        fvs = self.m_dcgmGroup.samples.GetAllSinceLastCall(None, self.m_fieldGroup).values
        for gpuId in fvs.keys():
            dcgm_config['last_value'][gpuId] = {}
            for fieldId in self.m_publishFields[self.m_updateFreq]:
                if fieldId in self.m_dcgmIgnoreFields:
                    continue
                dcgm_config['last_value'][gpuId][fieldId] = None