]> arthur.barton.de Git - netdata.git/commitdiff
elasticsearch plugin: failed to collect data after ES restart fixed
authorIlya <ilyamaschenko@gmail.com>
Wed, 1 Feb 2017 12:22:19 +0000 (21:22 +0900)
committerIlya <ilyamaschenko@gmail.com>
Wed, 1 Feb 2017 12:22:19 +0000 (21:22 +0900)
python.d/elasticsearch.chart.py

index ff841f17c0a6adc0a0129ec8ae8bee80709b2902..9b2876739b852b7c289b13d7d6848dbad236d5b8 100644 (file)
@@ -329,7 +329,7 @@ class Service(UrlService):
             to_netdata.update(update_key('docs', data['indices']['docs']))
             to_netdata.update(update_key('store', data['indices']['store']))
             to_netdata['indices_count'] = data['indices']['count']
-            to_netdata['shards_total'] = data['indices']['shards']['total']
+            to_netdata['shards_total'] = data['indices'].get('shards', {}).get('total')
 
             queue.put(to_netdata)