MeetMe / newrelic-plugin-agent

Multi-Plugin python-based Agent for NewRelic's Platform
BSD 3-Clause "New" or "Revised" License
425 stars 265 forks source link

Plugin does not work with Elasticsearch 5.5 #534

Open leandrocostam opened 7 years ago

leandrocostam commented 7 years ago

Hi,

I am trying to set up the plugin to monitor a cluster of Elasticsearch (ES). The plugin worked well using Elasticsearch 1.x or 2.x. But when I tried to configure to use ES 5.5, I faced an error:

ERROR      2017-08-22 13:53:25,866 25520  MainProcess     MainThread newrelic_plugin_agent.plugins.base            http_get                  L354   : Error response from http://192.168.29.140:9200/_nodes/stats?all (400): {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/_nodes/stats] contains unrecognized parameter: [all]"}],"type":"illegal_argument_exception","reason":"request [/_nodes/stats] contains unrecognized parameter: [all]"},"status":400}

On my research, I found the new command to execute ES API:

curl -XGET 'http://192.168.29.140:9200/_nodes/stats/_all'

The problem is with ?all and /_all on the end of HTTP request. Is there any plan to correct the plugin to work with ES 5.5?

marcossegovia commented 6 years ago

Having the same trouble !

marcossegovia commented 6 years ago

Did you manage to fix it? @leandrocostam ?