diff options
author | fcalvet <38648518+fcalvet@users.noreply.github.com> | 2020-02-10 17:00:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-10 17:00:34 +0100 |
commit | c66f874e8dfa68407d74c3e0c8c2e89577e52a34 (patch) | |
tree | aa679fd8794c81d30cc32849d79f4d49d053c222 | |
parent | 3e5ec443cea6edfd705622b4c90da2783ff8bc35 (diff) |
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
-rw-r--r-- | glances/exports/glances_influxdb.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/glances/exports/glances_influxdb.py b/glances/exports/glances_influxdb.py index 91cfddf3..5df70832 100644 --- a/glances/exports/glances_influxdb.py +++ b/glances/exports/glances_influxdb.py @@ -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)) |