mirror of https://github.com/nicolargo/glances
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-descriptionpull/1599/head
parent
3e5ec443ce
commit
c66f874e8d
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue