@cryptotaxi247 / netdata-1 / commits / d2b1e12cd

reshape status added to mdstat

Ilya committed Jan 4, 2017 at 18:04 UTC d2b1e12cd844ddb98a14387e0affb8a537242a74
1 file changed +5 -3
python.d/mdstat.chart.py
+5 -3
@@ -34,16 +34,17 @@ class Service(SimpleService):
34 self.order.append(''.join([md, '_rate']))
35 self.definitions['agr_health']['lines'].append([''.join([md, '_health']), md, 'absolute'])
36 self.definitions[md] = {'options':
37 - [None, 'MD disks stats', 'disks', md, 'md.disks', 'stacked'],
37 + [None, '%s disks stats' % md, 'disks', md, 'md.disks', 'stacked'],
38 'lines': [[''.join([md, '_total']), 'total', 'absolute'],
39 [''.join([md, '_inuse']), 'inuse', 'absolute']]}
40 self.definitions[''.join([md, '_status'])] = {'options':
41 - [None, 'MD current status', 'percent', md, 'md.status', 'line'],
41 + [None, '%s current status' % md, 'percent', md, 'md.status', 'line'],
42 'lines': [[''.join([md, '_resync']), 'resync', 'absolute', 1, 100],
43 [''.join([md, '_recovery']), 'recovery', 'absolute', 1, 100],
44 + [''.join([md, '_reshape']), 'reshape', 'absolute', 1, 100],
45 [''.join([md, '_check']), 'check', 'absolute', 1, 100]]}
46 self.definitions[''.join([md, '_rate'])] = {'options':
46 - [None, 'MD operation status', 'rate', md, 'md.rate', 'line'],
47 + [None, '%s operation status' % md, 'rate', md, 'md.rate', 'line'],
48 'lines': [[''.join([md, '_finishin']), 'finish min', 'absolute', 1, 100],
49 [''.join([md, '_rate']), 'megabyte/s', 'absolute', -1, 100]]}
50 self.info('Plugin was started successfully. MDs to monitor %s' % (md_list))
@@ -81,6 +82,7 @@ class Service(SimpleService):
82 to_netdata[''.join([md[0], '_health'])] = int(md[1]) - int(md[2])
83 to_netdata[''.join([md[0], '_check'])] = 0
84 to_netdata[''.join([md[0], '_resync'])] = 0
85 + to_netdata[''.join([md[0], '_reshape'])] = 0
86 to_netdata[''.join([md[0], '_recovery'])] = 0
87 to_netdata[''.join([md[0], '_finishin'])] = 0
88 to_netdata[''.join([md[0], '_rate'])] = 0