A Prometheus exporter for vSphere
./vsphere_exporter-master --help Usage of ./vsphere_exporter-master: -config.file string vsphere_exporter configuration file name. -log.level value Only log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal, panic]. -web.listen-address string Address on which to expose metrics and web interface. (default ":9155") -web.telemetry-path string Path under which to expose Prometheus metrics. (default "/metrics")
The function ignoreMetric
has an array, that contains metrics exported by vcenter, that will not be exported by this exporter, to reduce the number of time series.
Should be adjusted to own needs. (TODO: Load it via config file)
The vsphereExporter.service is an example systemd-service, that restarts the exporter always after it exits (e.g. after a conenction loss to the vcenter).
- Do not call the exporter to often, exporting all metrics take some time and is done live (might need to increase the timeout)