StatsD export prefix option is ignored #1074

pull/1080/head
nicolargo 2017-03-31 22:01:04 +02:00
parent 51c90c4a1f
commit cc06451cc0
2 changed files with 3 additions and 3 deletions

2
NEWS
View File

@ -5,7 +5,7 @@ Glances Version 2
Version 2.9.2 Version 2.9.2
============= =============
* ... * StatsD export prefix option is ignored (issue #1074)
Version 2.9.1 Version 2.9.1
============= =============

View File

@ -57,7 +57,7 @@ class Export(GlancesExport):
# Init the Statsd client # Init the Statsd client
self.client = self.init() self.client = self.init()
def init(self, prefix='glances'): def init(self):
"""Init the connection to the Statsd server.""" """Init the connection to the Statsd server."""
if not self.export_enable: if not self.export_enable:
return None return None
@ -66,7 +66,7 @@ class Export(GlancesExport):
self.port)) self.port))
return StatsClient(self.host, return StatsClient(self.host,
int(self.port), int(self.port),
prefix=prefix) prefix=self.prefix)
def export(self, name, columns, points): def export(self, name, columns, points):
"""Export the stats to the Statsd server.""" """Export the stats to the Statsd server."""