Skip to content

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

License

Notifications You must be signed in to change notification settings

fennm/pyVsphereInflux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published