Skip to content

Commit

Permalink
_nodes/stats?all is broken in new versions of ES
Browse files Browse the repository at this point in the history
Refer to issue discussed here elastic/elasticsearch#21410. As an alternative it was suggested to use "/_nodes/stats" or "/_nodes/stats/_all" or "/_nodes/stats?metric=_all". For backward compatibility till 0.90 using no flags should work as the "/_nodes/stats" returns all stats by default and is consistent across all versions so far.
  • Loading branch information
mayankgoyal committed Oct 6, 2017
1 parent 4a2605a commit 0fe149e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion newrelic_python_agent/plugins/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ElasticSearch(base.JSONStatsPlugin):
GAUGE_MATCH = ['Current']

DEFAULT_HOST = 'localhost'
DEFAULT_PATH = '/_nodes/stats?all'
DEFAULT_PATH = '/_nodes/stats'
DEFAULT_PORT = 9200
GUID = 'com.meetme.newrelic_elasticsearch_node_agent'

Expand Down

0 comments on commit 0fe149e

Please sign in to comment.