def __init__()

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


    def __init__(self):
        DcgmReader.__init__(
            self,
            fieldIds=dcgm_config['publishFieldIds'],
            ignoreList=dcgm_config['ignoreList'],
            updateFrequency=int(60000000 / dcgm_config['prometheusPublishInterval']),
            maxKeepAge=1800.0,
            fieldGroupName='dcgm_exporter_{}'.format(os.getpid()),
            hostname=dcgm_config['dcgmHostName'],
        )
        logging.info(
            'DCGM sample interval: {} per minute'
            .format(dcgm_config['prometheusPublishInterval']))
        self.InitConnection()
        self.InitGauges()
        signal.signal(signal.SIGUSR1, self.jobID_update_flag)
        self.InitCounterConfig()