diff --git a/glances/exports/glances_influxdb.py b/glances/exports/glances_influxdb.py index f8683db6..946095cc 100644 --- a/glances/exports/glances_influxdb.py +++ b/glances/exports/glances_influxdb.py @@ -146,6 +146,7 @@ class Export(GlancesExport): def export(self, name, columns, points): """Write the points to the InfluxDB server.""" + logger.debug("Export {} stats to InfluxDB".format(name)) # Manage prefix if self.prefix is not None: name = self.prefix + '.' + name @@ -161,5 +162,4 @@ class Export(GlancesExport): try: self.client.write_points(data) except Exception as e: - logger.error("Can not export stats to InfluxDB (%s)" % e) - logger.debug("Export {} stats to InfluxDB".format(name)) + logger.error("Can not export {} stats to InfluxDB ({})".format(name, e)) diff --git a/glances/plugins/glances_docker.py b/glances/plugins/glances_docker.py index ef5c5e90..3d051154 100644 --- a/glances/plugins/glances_docker.py +++ b/glances/plugins/glances_docker.py @@ -427,7 +427,7 @@ class Plugin(GlancesPlugin): # Name name = container['Names'][0] if len(name) > 20: - name = '_' + name[:-19] + name = '_' + name[-19:] else: name = name[:20] msg = ' {0:20}'.format(name)