]> arthur.barton.de Git - netdata.git/blobdiff - python.d/elasticsearch.chart.py
Merge pull request #1803 from l2isbad/freeradius_plugin_p26_fix
[netdata.git] / 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)