Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Conversation

@pho
Copy link

@pho pho commented Aug 31, 2017

The elasticsearch collector was failing due to:
scollector[13949]: error: interval.go:65: elasticsearch: json: cannot unmarshal string into Go struct field .ip of type []string

On my elasticsearch 5.x node:

elastic-1:~# curl localhost:9200/_nodes/_local/stats
... ,"ip":"172.16.0.19:9300",....

So this PR fixes it, although I have a single node cluster, so I dont really know if this response would be different with more nodes

@mhenderson-so
Copy link
Contributor

This commit would break the ElasticSearch collector for versions below 5.x, where that field is an array. I (by coincidence) submitted PR #2155 which fixes this issue in a way that does not break the collector for older Elastic versions (cc @captncraig)

@pho
Copy link
Author

pho commented Aug 31, 2017

Such coincidence haha

Thank you! I'll close this PR then

@pho pho closed this Aug 31, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants