pryorda / vmware_exporter

VMWare vCenter Exporter for Prometheus
BSD 3-Clause "New" or "Revised" License
527 stars 200 forks source link

Add option to specify port of vSphere host #359

Open andreasDalsgaard opened 1 year ago

andreasDalsgaard commented 1 year ago

Add option to specify port of vSphere host. This makes it easy to test exporter in combination with vmware/vcsim, e.g.:

services:
  vcmock:
    image: vmware/vcsim
    ports:
      - "8989:8989"
  pryoda:
    image: pryorda_vmware_exporter_local
    environment:
      VSPHERE_USER: "user"
      VSPHERE_PASSWORD: "pass"
      VSPHERE_HOST: vcmock
      VSPHERE_PORT: 8989
      VSPHERE_SPECS_SIZE: "200"
      VSPHERE_IGNORE_SSL: "True"
    ports:
      - "9272:9272"