@cryptotaxi247 / netdata-1 / commits / 38c10e3d0

Fix chart ordering issues for per-thread charts.

Austin S. Hemmelgarn committed Jun 6, 2018 at 10:58 UTC 38c10e3d07ef364183c2f358f9afcde2cabd7afc
1 file changed +2 -7
python.d/unbound.chart.py
+2 -7
@@ -210,13 +210,8 @@ class Service(SocketService):
210 charts[chartname]['options'][1] = charts[chartname]['options'][1].format(longname)
211 for line in range(0, len(charts[chartname]['lines'])):
212 charts[chartname]['lines'][line][0] = charts[chartname]['lines'][line][0].format(shortname)
213 - order = order[0] + order[1] + order[2]
214 - for chart in order:
215 - params = [chart] + charts[chart]['options']
216 - dimensions = charts[chart]['lines']
217 - new_chart = self.charts.add_chart(params)
218 - for dimension in dimensions:
219 - new_chart.add_dimension(dimension)
213 + self.order = self.order + order[0] + order[1] + order[2]
214 + self.definitions.update(charts)
215 for key, value in PER_THREAD_STAT_MAP.items():
216 STAT_MAP[key.format(shortname)] = (value[0].format(shortname), value[1])
217