Conversion to milliseconds

Change-Id: I9044899c212ff2ca93090e6d7b552456f616cfcf
This commit is contained in:
Roland Hochmuth 2015-03-02 18:18:19 -07:00
parent 03b54c235c
commit 960529b171
2 changed files with 4 additions and 4 deletions

View File

@ -47,9 +47,9 @@ max_buffer_size = 32768
zookeeper_path = /persister_partitions/metrics zookeeper_path = /persister_partitions/metrics
[influxdb] [influxdb]
database_name = test database_name = mon
ip_address = 192.168.10.4 ip_address = 192.168.10.4
port = 8086 port = 8086
user = root user = mon_persister
password = root password = password

View File

@ -225,7 +225,7 @@ class AbstractPersister(threading.Thread):
if self._data_points: if self._data_points:
try: try:
self._influxdb_client.write_points(self._data_points.values()) self._influxdb_client.write_points(self._data_points.values(), 'ms')
except Exception: except Exception:
log.exception("Error writing to influxdb: {}" log.exception("Error writing to influxdb: {}"
.format(self._data_points.values())) .format(self._data_points.values()))