youtubebeat/vendor/github.com/elastic/beats/metricbeat/module/vsphere/_meta
2018-11-18 11:08:38 +01:00
..
config.reference.yml Add generated youtubebeat files 2018-11-18 11:08:38 +01:00
config.yml Add generated youtubebeat files 2018-11-18 11:08:38 +01:00
docs.asciidoc Add generated youtubebeat files 2018-11-18 11:08:38 +01:00
fields.yml Add generated youtubebeat files 2018-11-18 11:08:38 +01:00
README.md Add generated youtubebeat files 2018-11-18 11:08:38 +01:00

Testing using GOVCSIM.

To test the vsphere module without a real Vmware SDK URL you can use the following setup. Govcsim is a vCenter Server and ESXi API based simulator written using govmomi. It creates a vCenter Server model with a datacenter, hosts, cluster, resource pools, networks and a datastore.

Requirements:

  • golang 1.7+ installed on a system
  • git installed on a system
  1. Set the GOPATH where govcsim will be installed
export GOPATH=/directory/code
  1. Install Govcsim
go get -u github.com/vmware/vic/cmd/vcsim
  1. Run Govcsim
$GOPATH/bin/vcsim

Now setup your metricbeat config to connect to Govcsim:

- module: vsphere
  metricsets:
    - datastore
    - host
    - virtualmachine
  enabled: true
  period: 5s
  hosts: ["https://127.0.0.1:8989/sdk"]

  username: "user"
  password: "pass"
  insecure: true