Skip to content

Commit

Permalink
Merge branch 'bugfix/stats'
Browse files Browse the repository at this point in the history
Fixes broken HTTP GET for index statistics.

Should be backwards compatible because the all=true parameter has not been used by elasticsearch for a long time.
See: elastic/elasticsearch#21410
  • Loading branch information
Aaron Sterr committed Dec 12, 2016
2 parents 642dcd3 + ce03c9e commit efa1e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion es2graphite.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def get_metrics():
thread_pool_metrics = process_thread_pool(args.prefix, thread_pool, cluster_health['cluster_name'])
submit_to_graphite(thread_pool_metrics)

indices_stats_url = 'http://%s/_stats?all=true' % get_es_host()
indices_stats_url = 'http://%s/_stats' % get_es_host()
if args.shard_stats:
indices_stats_url = '%s&level=shards' % indices_stats_url
elif args.health_level == 'cluster':
Expand Down

0 comments on commit efa1e17

Please sign in to comment.