(self, path)
Parse and submit the metrics from a file
Parse and submit the metrics from a file
Parse and submit the metrics from a file
def _process_file(self, path):
        """Parse and submit the metrics from a file
        """
        try:
            f = open(path)
            for line in f:
                self._process_line(line)

            os.remove(path)
        except IOError as ex:
            self.log.error("Could not open file `{path}': {error}".format(
                path=path, error=ex.strerror))
def _process_file ( self , path ) : try : f = open ( path ) for line in f : self . _process_line ( line ) os . remove ( path ) except IOError as ex : self . log . error ( "Could not open file `{path}': {error}" . format ( path = path , error = ex . strerror ) )