def configure_callback(conf):
 global MARATHON_HOST, MARATHON_PORT, MARATHON_URL, VERBOSE_LOGGING
 for node in conf.children:
  if (node.key == 'Host'):
   MARATHON_HOST = node.values[0]
  elif (node.key == 'Port'):
   MARATHON_PORT = int(node.values[0])
  elif (node.key == 'Verbose'):
   VERBOSE_LOGGING = bool(node.values[0])
  else:
   collectd.warning(('marathon plugin: Unknown config key: %s.' % node.key))
 MARATHON_URL = (((('http://' + MARATHON_HOST) + ':') + str(MARATHON_PORT)) + '/metrics')
 log_verbose(('Configured with host=%s, port=%s, url=%s' % (MARATHON_HOST, MARATHON_PORT, MARATHON_URL)))

def configure_callback ( conf ) : global MARATHON_HOST , MARATHON_PORT , MARATHON_URL , VERBOSE_LOGGING for node in conf . children : if ( node . key == 'Host' ) : MARATHON_HOST = node . values [ 0 ] elif ( node . key == 'Port' ) : MARATHON_PORT = int ( node . values [ 0 ] ) elif ( node . key == 'Verbose' ) : VERBOSE_LOGGING = bool ( node . values [ 0 ] ) else : collectd . warning ( ( 'marathon plugin: Unknown config key: %s.' % node . key ) ) MARATHON_URL = ( ( ( ( 'http://' + MARATHON_HOST ) + ':' ) + str ( MARATHON_PORT ) ) + '/metrics' ) log_verbose ( ( 'Configured with host=%s, port=%s, url=%s' % ( MARATHON_HOST , MARATHON_PORT , MARATHON_URL ) ) )
received configuration information .