This commit is contained in:
Gavin M. Roy 2016-03-10 17:37:54 -05:00
parent 9ac286bf65
commit c5734a1f69

View file

@ -127,7 +127,6 @@ class InfluxDBCollector(object):
io_loop=None, submission_interval=SUBMISSION_INTERVAL,
max_batch_size=MAX_BATCH_SIZE, tags=None):
self._buffer = list()
self._client.configure(None, defaults={'user_agent': _USER_AGENT})
self._database = database
self._influxdb_url = '{}?db={}'.format(url, database)
self._interval = submission_interval or self.SUBMISSION_INTERVAL
@ -138,6 +137,7 @@ class InfluxDBCollector(object):
self._client = httpclient.AsyncHTTPClient(force_instance=True,
io_loop=self._io_loop)
self._client.configure(None, defaults={'user_agent': _USER_AGENT})
# Add the periodic callback for submitting metrics
LOGGER.info('Starting PeriodicCallback for writing InfluxDB metrics')