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

Fix missing nodes from Node Listing page when using Metricbeat Elasticsearch module with xpack.enabled: true #10639

Merged
merged 2 commits into from
Feb 11, 2019

Conversation

ycombinator
Copy link
Contributor

@ycombinator ycombinator commented Feb 7, 2019

Starting Metricbeat 6.6.0, if a user uses the elasticsearch module for stack monitoring (by setting xpack.enabled: true in their modules.d/elasticsearch.yml), they will see no nodes in their Elasticsearch Node Listing page. 😮

screen shot 2019-02-07 at 10 24 33 am

This is because the UI code relies on the type=nodes_stats documents in .monitoring-es-* to contain a source_node property with certain fields in it. The elasticsearch/node_stats metricset wasn't indexing this property.

This PR fixes this bug.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/stack-monitoring

@ycombinator ycombinator added the needs_backport PR is waiting to be backported to other branches. label Feb 7, 2019
Copy link
Contributor

@chrisronline chrisronline left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

screen shot 2019-02-07 at 1 44 20 pm

@cachedout
Copy link
Contributor

Do we know which released versions this bug affected?

@ycombinator
Copy link
Contributor Author

jenkins, test this

@ycombinator
Copy link
Contributor Author

Do we know which released versions this bug affected?

Looking at past branches, it appears that 6.6.0 was where this bug was introduced.

@cachedout
Copy link
Contributor

@ycombinator K. I'm just thinking about what we might be able to do to raise awareness for people who run into this bug that it's a known issue and that it's since been fixed. Maybe it's worth at least filing a corresponding issue that people can search for?

@ycombinator ycombinator changed the title Add source_node object to node_stats documents Fix missing nodes from Node Listing page when using Metricbeat Elasticsearch module with xpack.enabled: true Feb 8, 2019
@ycombinator
Copy link
Contributor Author

@cachedout I renamed this PR title to be more about the problem. That way if a user searches for any of those words, this PR should turn up in their results.

@ycombinator
Copy link
Contributor Author

jenkins, test this

1 similar comment
@ycombinator
Copy link
Contributor Author

jenkins, test this

@ycombinator
Copy link
Contributor Author

@ruflin I'd like you to review this, when you get a chance, please. Thank you!

Copy link
Member

@ruflin ruflin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did not test this on my end but code looks good.

@ycombinator ycombinator merged commit 6ddaae6 into elastic:master Feb 11, 2019
@ycombinator ycombinator deleted the bugfix-mb-es-node-stats-xpack branch February 11, 2019 12:32
ycombinator added a commit to ycombinator/beats that referenced this pull request Feb 11, 2019
…csearch module with xpack.enabled: true (elastic#10639)

* Add source_node object to node_stats documents

* Adding CHANGELOG entry

(cherry picked from commit 6ddaae6)
@ycombinator ycombinator removed the needs_backport PR is waiting to be backported to other branches. label Feb 11, 2019
ycombinator added a commit to ycombinator/beats that referenced this pull request Feb 11, 2019
…csearch module with xpack.enabled: true (elastic#10639)

* Add source_node object to node_stats documents

* Adding CHANGELOG entry

(cherry picked from commit 6ddaae6)
ycombinator added a commit to ycombinator/beats that referenced this pull request Feb 11, 2019
…csearch module with xpack.enabled: true (elastic#10639)

* Add source_node object to node_stats documents

* Adding CHANGELOG entry

(cherry picked from commit 6ddaae6)
ycombinator added a commit that referenced this pull request Feb 12, 2019
…csearch module with xpack.enabled: true (#10639) (#10672)

* Add source_node object to node_stats documents

* Adding CHANGELOG entry

(cherry picked from commit 6ddaae6)
ycombinator added a commit that referenced this pull request Feb 12, 2019
…hen using Metricbeat Elasticsearch module with xpack.enabled: true (#10673)

* Fix missing nodes from Node Listing page when using Metricbeat Elasticsearch module with xpack.enabled: true (#10639)

* Add source_node object to node_stats documents

* Adding CHANGELOG entry

(cherry picked from commit 6ddaae6)

* Removing extraneous changes
ycombinator added a commit to ycombinator/beats that referenced this pull request Feb 12, 2019
…csearch module with xpack.enabled: true (elastic#10639)

* Add source_node object to node_stats documents

* Adding CHANGELOG entry

(cherry picked from commit 6ddaae6)
ycombinator added a commit that referenced this pull request Feb 12, 2019
…csearch module with xpack.enabled: true (#10639) (#10671)

* Add source_node object to node_stats documents

* Adding CHANGELOG entry

(cherry picked from commit 6ddaae6)
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
… page when using Metricbeat Elasticsearch module with xpack.enabled: true (elastic#10673)

* Fix missing nodes from Node Listing page when using Metricbeat Elasticsearch module with xpack.enabled: true (elastic#10639)

* Add source_node object to node_stats documents

* Adding CHANGELOG entry

(cherry picked from commit 9619718)

* Removing extraneous changes
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.

5 participants