code: def get_monitor(host=PINBA_SERVER, port=PINBA_PORT, *args, **kwargs):
      
      kwargs['servername'] = PINBA_SERVER_NAME
      kwargs['scriptname'] = __file__
  
      for item in inspect.stack():
          if item and __file__ not in item:
              kwargs['scriptname'] = item[3]
              break
  
      return ScriptMonitor((host, port), *args, **kwargs)
docs: todo: memory + cpu