Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #8533 to 6.x: Fix source_node logic in elasticsearch/shards xpack code #8547

Merged
merged 1 commit into from Oct 4, 2018

Conversation

ycombinator
Copy link
Contributor

Cherry-pick of PR #8533 to 6.x branch. Original message:

This PR fixes the data in the source_node object present in shards type documents in .monitoring-es-6-*. It also saves an extra ES API call by requesting a bit of additional information (nodes) from the GET _cluster/state ES API call already being made by the metricset.

Note that the source_node object constructed by the getSourceNode function is partial. It only contains two fields, uuid and name, because these are the only two fields actually used by the Monitoring UI.

* Add source_node to elasticsearch/shard metricset xpack code

* Only add source_node if shard has been allocated to node

(cherry picked from commit 3fedc8d)
@ycombinator ycombinator merged commit 80a20b8 into elastic:6.x Oct 4, 2018
@ycombinator ycombinator deleted the backport_8533_6.x branch December 25, 2019 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants