code: def connect(self, name, _type, host='localhost', port=2004,
                  prefix='alignak', enabled=False, broks_enabled=False):
          
          self.name = name
          # This attribute is not used, but I keep ascending compatibility with former interface!
          self._type = _type
  
          # local graphite/carbon part
          self.statsd_host = host
          try:
              self.statsd_port = int(port)
          except ValueError:
              self.statsd_port = 2004
          self.statsd_prefix = prefix
          self.statsd_enabled = enabled
  
          # local broks part
          self.broks_enabled = broks_enabled
  
          logger.debug("Graphite/carbon configuration for %s - %s:%s, prefix: %s, "
                       "enabled: %s, broks: %s, file: %s",
                       self.name, self.statsd_host, self.statsd_port,
                       self.statsd_prefix, self.statsd_enabled, self.broks_enabled,
                       self.stats_file)
  
          if self.statsd_enabled and self.statsd_host is not None and self.statsd_host != 'None':
              logger.info("Sending %s statistics to: %s:%s, prefix: %s",
                          self.name, self.statsd_host, self.statsd_port, self.statsd_prefix)
  
              self.carbon = CarbonIface(self.statsd_host, self.statsd_port)
              logger.info('Alignak internal statistics will be sent to Graphite.')
  
          return self.statsd_enabled
docs: Init instance with real values for a graphite/carbon connection
  
          :param name: daemon name
          :type name: str
          :param _type: daemon type
          :type _type:
          :param host: host to post data
          :type host: str
          :param port: port to post data
          :type port: int
          :param prefix: prefix to add to metric
          :type prefix: str
          :param enabled: bool to enable statsd
          :type enabled: bool
          :param broks_enabled: bool to enable broks sending
          :type broks_enabled: bool
          :return: None