Skip to content
A library and supporting script for pulling data from vSphere and inserting it into InfluxDB
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib/pyVsphereInflux
.gitignore
LICENSE
README.md
requirements.txt
setup.py
sourceme.sh

README.md

pyVsphereInflux

A library and supporting script for pulling data from vSphere and inserting it into InfluxDB

Example usage:

vsphere-influxdb-import.py --vcenter myvcenter --vs-username Administrator \
                           --vs-password password \
                           --influx-dsn influxdb://root:root@localhost:8086/vms

$ vsphere-influxdb-import.py -h
usage: vsphere-influxdb-import.py [-h] --vcenter VCENTER
			      [--vs-username VS_USERNAME]
			      [--vs-password VS_PASSWORD]
			      [--vs-port VS_PORT]
			      [--influx-dsn INFLUX_DSN] [--debug]

collect metrics from vSphere and import into InfluxDB

optional arguments:
  -h, --help            show this help message and exit
  --vcenter VCENTER     vCenter to connect to
  --vs-username VS_USERNAME
		    vSphere username
  --vs-password VS_PASSWORD
		    vSphere password
  --vs-port VS_PORT     vSphere port
  --influx-dsn INFLUX_DSN
		    InfluxDB DSN, eg.
		    influxdb://root:root@localhost:8086/database
  --debug, -d           enable debugging

Developing

$ virtualenv ve
$ . ve/bin/activate
$ pip install -r requirements.txt
$ python setup.py develop
You can’t perform that action at this time.