def __init__(self, config=None): """ Create a new instance of the HostedGraphiteHandler class """ # Initialize Handler Handler.__init__(self, config) self.key = self.config['apikey'].lower().strip() self.graphite = GraphiteHandler(config)
def __init__(self, config=None): """ Create a new instance of the HostedGraphiteHandler class """ self.key = config['apikey'].lower().strip() config['host'] = 'carbon.hostedgraphite.com' config['port'] = '2003' self.graphite = GraphiteHandler(config)
def __init__(self, config=None): """ Create a new instance of the MultiGraphiteHandler class """ # Initialize Handler Handler.__init__(self, config) self.handlers = [] # Initialize Options hosts = self.config['host'] for host in hosts: config = deepcopy(self.config) config['host'] = host self.handlers.append(GraphiteHandler(config))