@cryptotaxi247 / netdata-1 / commits / 608f5790c

Fixed collect hrsp_total value

Taras Kozlovskyi committed Dec 28, 2017 at 15:51 UTC 608f5790c42a93d269cae1d8304f7e8b71eab46f
1 file changed +1 -2
python.d/haproxy.chart.py
+1 -2
@@ -254,8 +254,7 @@ class Service(UrlService, SocketService):
254 stat_data['_'.join(['backend', metric, idx])] = backend.get(metric) or 0
255 if metric.startswith('hrsp_'):
256 hrsp_total += int(backend.get(metric) or 0)
257 - if hrsp_total:
258 - stat_data['_'.join(['backend', 'hrsp_total', idx])] = hrsp_total
257 + stat_data['_'.join(['backend', 'hrsp_total', idx])] = hrsp_total
258 return stat_data
259
260 def _get_info_data(self, regex):