summaryrefslogtreecommitdiffstats
path: root/glances/exports/glances_influxdb.py
diff options
context:
space:
mode:
authorBartlomiej Cieszkowski <bartlomiej.cieszkowski@gmail.com>2020-03-05 22:49:47 +0100
committerBartlomiej Cieszkowski <bartlomiej.cieszkowski@gmail.com>2020-03-05 22:49:47 +0100
commit5d5973abecd7e9db9a2b966e2f9b5c74e63bdf85 (patch)
tree274a59b179c0c5824e477a801dd7b3f4371b5fd4 /glances/exports/glances_influxdb.py
parentf9c13723c8968d38839c597d4367c87b6082736d (diff)
parent547062750b28a9f03700d956535eb38a55571281 (diff)
Merge branch 'develop' into timezone_too_long
# Conflicts: # glances/plugins/glances_now.py
Diffstat (limited to 'glances/exports/glances_influxdb.py')
-rw-r--r--glances/exports/glances_influxdb.py2
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))