Skip to content

Commit

Permalink
metricbeat: update kvm module defaults
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
adriansr committed Jul 31, 2018
1 parent 45f16a5 commit 7b0ffc8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 5 deletions.
5 changes: 4 additions & 1 deletion metricbeat/docs/modules/kvm.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ metricbeat.modules:
metricsets: ["dommemstat"]
enabled: true
period: 10s
hosts: ["localhost"]
hosts: ["unix:///var/run/libvirt/libvirt-sock"]
# For remote hosts, setup network access in libvirtd.conf
# and use the tcp scheme:
# hosts: [ "tcp://<host>:16509" ]
# Timeout to connect to Libvirt server
#timeout: 1s
Expand Down
5 changes: 4 additions & 1 deletion metricbeat/metricbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,10 @@ metricbeat.modules:
metricsets: ["dommemstat"]
enabled: true
period: 10s
hosts: ["localhost"]
hosts: ["unix:///var/run/libvirt/libvirt-sock"]
# For remote hosts, setup network access in libvirtd.conf
# and use the tcp scheme:
# hosts: [ "tcp://<host>:16509" ]

# Timeout to connect to Libvirt server
#timeout: 1s
Expand Down
5 changes: 4 additions & 1 deletion metricbeat/module/kvm/_meta/config.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
metricsets: ["dommemstat"]
enabled: true
period: 10s
hosts: ["localhost"]
hosts: ["unix:///var/run/libvirt/libvirt-sock"]
# For remote hosts, setup network access in libvirtd.conf
# and use the tcp scheme:
# hosts: [ "tcp://<host>:16509" ]

# Timeout to connect to Libvirt server
#timeout: 1s
2 changes: 1 addition & 1 deletion metricbeat/module/kvm/_meta/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
#metricsets:
# - dommemstat
period: 10s
hosts: ["localhost"]
hosts: ["unix:///var/run/libvirt/libvirt-sock"]
2 changes: 1 addition & 1 deletion metricbeat/modules.d/kvm.yml.disabled
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
#metricsets:
# - dommemstat
period: 10s
hosts: ["localhost"]
hosts: ["unix:///var/run/libvirt/libvirt-sock"]

0 comments on commit 7b0ffc8

Please sign in to comment.