Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Latest commit

 

History

History
25 lines (22 loc) · 633 Bytes

File metadata and controls

25 lines (22 loc) · 633 Bytes

prometheus-vmware-exporter

Collect VMWare metrics from a vSphere host

Test

Currently, the only tests available are benchmarks. To run them, set VSPHERE_HOST, VSPHERE_USERNAME, and VSPHERE_PASSWORD in your shell environment and run go test -bench . -benchmem from the controller directory.

Build

docker build -t prometheus-vmware-exporter .

Run

docker run -d \
  --restart=always \
  --name=prometheus-vmware-exporter \
  --env=VSPHERE_HOST vsphere.domain.local \
  --env=VSPHERE_USERNAME user \
  --env=VSPHERE_PASSWORD password \
  --env=LOG_LEVEL debug \
  prometheus-vmware-exporter