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 #7793 to 6.x: Fixes to metricbeat's KVM module #8706

Merged
merged 1 commit into from
Oct 24, 2018

Conversation

jsoriano
Copy link
Member

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

Some fixes to the kvm module:

  • Improper error handling caused a panic when connection to libvirtd couldn't be established. Fixes Metricbeats panics in kvm dommemstat metricset #7792.
  • Cleaned up error handling and reporting.
  • The default configuration couldn't possibly work:
    host: [ "localhost" ] results in the module trying to create a network connection without schema. It will always fail with "dial: Unknown network ".
    For a default installation of libvirtd, the only possible method is to use:
    host: [ "unix:///var/run/libvirt/libvirt-sock" ].
    Also some gidance is provided for setting up remote monitoring.

Improper error handling caused a panic when connection to libvirtd
couldn't be stablished.

Cleaned up error handling a little bit.

Fixes elastic#7792

The default settings for the kvm module didn't work.

Updated to connect to the unix socket by default, and provide a hint on
how to setup access to libvirtd running on remote hosts.

(cherry picked from commit 76d3949)
@jsoriano jsoriano merged commit 1756cc3 into elastic:6.x Oct 24, 2018
@jsoriano jsoriano deleted the backport_7793_6.x branch October 24, 2018 08:42
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.

4 participants