def run(self):
    """Loop forever, pushing out stats."""
    self.graphite.start()
    while True:
      log.debug('Graphite pusher is sleeping for %d seconds', self.period)
      time.sleep(self.period)
      log.debug('Pushing stats to Graphite')
      try:
        self.push()
        log.debug('Done pushing stats to Graphite')
      except:
        log.exception('Exception while pushing stats to Graphite')
        raise
def run ( self ) : self . graphite . start ( ) while True : log . debug ( 'Graphite pusher is sleeping for %d seconds' , self . period ) time . sleep ( self . period ) log . debug ( 'Pushing stats to Graphite' ) try : self . push ( ) log . debug ( 'Done pushing stats to Graphite' ) except : log . exception ( 'Exception while pushing stats to Graphite' ) raise
Loop forever, pushing out stats.