Reduced precision to seconds in influxdb export

"To significantly improve compression, use the coarsest precision possible for timestamps." see documentation: https://docs.influxdata.com/influxdb/v1.7/write_protocols/line_protocol_reference/#syntax-description
pull/1599/head
fcalvet 2020-02-10 17:00:34 +01:00 committed by GitHub
parent 3e5ec443ce
commit c66f874e8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class Export(GlancesExport):
logger.debug("Cannot export empty {} stats to InfluxDB".format(name))
else:
try:
self.client.write_points(self._normalize(name, columns, points))
self.client.write_points(self._normalize(name, columns, points), time_precision="s")
except Exception as e:
# Log level set to debug instead of error (see: issue #1561)
logger.debug("Cannot export {} stats to InfluxDB ({})".format(name, e))