yandextank/plugins/Telegraf/collector.py
def stop(self):
        """Shutdown agents"""
        logger.debug("Uninstalling monitoring agents")
        for agent in self.agents:
            log_filename, data_filename = agent.uninstall()
            self.artifact_files.append(log_filename)
            self.artifact_files.append(data_filename)
        for agent in self.agents:
            try:
                logger.debug(
                    'Waiting for agent %s reader thread to finish.', agent)
                agent.reader_thread.join(10)
            except BaseException:
                logger.error('Monitoring reader thread stuck!', exc_info=True)
def stop(self):
        """Shutdown agents"""
        logger.debug("Uninstalling monitoring agents")
        for agent in self.agents:
            log_filename, data_filename = agent.uninstall()
            self.artifact_files.append(log_filename)
            self.artifact_files.append(data_filename)
        for agent in self.agents:
            try:
                logger.debug(
                    'Waiting for agent %s reader thread to finish.', agent)
                agent.reader_thread.join(10)
            except BaseException:
                logger.error('Monitoring reader thread stuck!', exc_info=True)
Shutdown agents