@cryptotaxi247 / netdata-1 / commits / a55035c4c

elasticsearch plugin: failed to collect data after ES restart fixed

Ilya committed Feb 1, 2017 at 21:22 UTC a55035c4c8be23bf9434925cb8701556ed4d6695
1 file changed +1 -1
python.d/elasticsearch.chart.py
+1 -1
@@ -329,7 +329,7 @@ class Service(UrlService):
329 to_netdata.update(update_key('docs', data['indices']['docs']))
330 to_netdata.update(update_key('store', data['indices']['store']))
331 to_netdata['indices_count'] = data['indices']['count']
332 - to_netdata['shards_total'] = data['indices']['shards']['total']
332 + to_netdata['shards_total'] = data['indices'].get('shards', {}).get('total')
333
334 queue.put(to_netdata)
335