yandextank/plugins/Telegraf/client.py
def start(self):
        """Start local agent"""
        logger.info('Starting agent on localhost')
        args = self.python.split() + [
            os.path.join(
                self.workdir,
                self.AGENT_FILENAME),
            '--telegraf',
            self.path['TELEGRAF_LOCAL_PATH'],
            '--host',
            self.host]
        if self.kill_old:
            args.append(self.kill_old)
        self.session = self.popen(args)
        self.reader_thread = threading.Thread(target=self.read_buffer)
        self.reader_thread.setDaemon(True)
        return self.session
def start(self):
        logger.info('Starting agent on localhost')
        args = self.python.split() + [
            os.path.join(
                self.workdir,
                self.AGENT_FILENAME),
            '--telegraf',
            self.path['TELEGRAF_LOCAL_PATH'],
            '--host',
            self.host]
        if self.kill_old:
            args.append(self.kill_old)
        self.session = self.popen(args)
        self.reader_thread = threading.Thread(target=self.read_buffer)
        self.reader_thread.setDaemon(True)
        return self.session
def start ( self ) : logger . info ( 'Starting agent on localhost' ) args = self . python . split ( ) + [ os . path . join ( self . workdir , self . AGENT_FILENAME ) , '--telegraf' , self . path [ 'TELEGRAF_LOCAL_PATH' ] , '--host' , self . host ] if self . kill_old : args . append ( self . kill_old ) self . session = self . popen ( args ) self . reader_thread = threading . Thread ( target = self . read_buffer ) self . reader_thread . setDaemon ( True ) return self . session
Start local agent
Start local agent