elastic / elasticsearch-metrics-reporter-java

Metrics reporter, which reports to elasticsearch
Apache License 2.0
231 stars 103 forks source link

Support ElasticSearch 6 #57

Closed gaetancollaud closed 6 years ago

gaetancollaud commented 6 years ago

Add application/json to request to support ElasticSearch 6.

See https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests for more details.

gaetancollaud commented 6 years ago

There is more to it. Multiple mapping type are now removed: https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking-changes-6.0.html

This PR only fix the content-type issue

gaetancollaud commented 6 years ago

I will make a new PR with everything