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

Account for no load average reported by ES on Windows #12866

Merged
merged 2 commits into from
Jul 11, 2019

Conversation

ycombinator
Copy link
Contributor

Bug reported via https://discuss.elastic.co/t/metricbeat-unable-to-ship-monitoring-information-on-windows-machine/189956.

When the elasticsearch module is enabled and configured with xpack.enabled: true, the node_stats metricset tries to parse CPU load average from the Elasticsearch GET _nodes/_local/stats API response. If Elasticsearch is running on Windows, no CPU load average is reported by this API. So Metricbeat currently fails with an error like this:

2019-07-11T11:35:51.886+0200    ERROR   [elasticsearch.node_stats] node_stats/node_stats.go:72 1 error: failure to apply node schema: 1 error: key `os.cpu.load_average` not found

This PR makes the parsing of CPU load average optional so we don't see this error when ES doesn't report the CPU load average, e.g. when it's running on Windows.

@elasticmachine
Copy link
Collaborator

Pinging @elastic/stack-monitoring

@ycombinator ycombinator merged commit a306f14 into elastic:master Jul 11, 2019
@ycombinator ycombinator deleted the mb-es-xp-load-avg-win branch July 11, 2019 13:51
ycombinator added a commit to ycombinator/beats that referenced this pull request Jul 11, 2019
* Account for no load average reported by ES on Windows

* Adding CHANGELOG entry
ycombinator added a commit to ycombinator/beats that referenced this pull request Jul 11, 2019
* Account for no load average reported by ES on Windows

* Adding CHANGELOG entry
@ycombinator ycombinator removed the needs_backport PR is waiting to be backported to other branches. label Oct 7, 2019
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

3 participants