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.4: Fixes to metricbeat's KVM module #8707

Merged
merged 1 commit into from
Oct 24, 2018

Conversation

jsoriano
Copy link
Member

Cherry-pick of PR #7793 to 6.4 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)
Copy link
Contributor

@andrewvc andrewvc left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@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.

CI Failure seems to be unrelated.

@jsoriano jsoriano merged commit 8fff209 into elastic:6.4 Oct 24, 2018
@jsoriano jsoriano deleted the backport_7793_6.4 branch October 24, 2018 08:43
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
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.

Co-authored-by: Adrian Serrano <[email protected]>

(cherry picked from commit 6de03f7)
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