govc_exporter

command module
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

README

vmware VCenter prometheus metrics exporter

Go Report Card

Prometheus stand alone exporter for VCenter metrics. Metrics are fetched by govmomi api.

Works also with stand alone ESX without VCenter.

Collectors Description
collector.ds Datastore metrics collector
collector.esx ESX (HostSystem) metrics collector
collector.respool ResourcePool metrics collector
collector.spod Datastore Cluster (StoragePod) metrics collector
collector.vm VirtualMachine metrics Collector

Building and running

Build
make
Running
export VC_URL=FIXME
export VC_USERNAME=FIXME
export VC_PASSWORD=FIXME
./govc_exporter <flags>
Usage
./govc_exporter --help
usage: govc_exporter --collector.vc.password=COLLECTOR.VC.PASSWORD --collector.vc.username=COLLECTOR.VC.USERNAME --collector.vc.url=COLLECTOR.VC.URL [<flags>]

Flags:
  -h, --help                 Show context-sensitive help (also try --help-long and --help-man).
      --collector.vc.password=COLLECTOR.VC.PASSWORD  
                             vc api password
      --collector.vc.username=COLLECTOR.VC.USERNAME  
                             vc api username
      --collector.vc.url=COLLECTOR.VC.URL  
                             vc api username
      --collector.intrinsec  Enable intrinsec specific features
      --collector.ds         Enable the ds collector (default: enabled).
      --collector.esx        Enable the esx collector (default: enabled).
      --collector.respool    Enable the respool collector (default: enabled).
      --collector.spod       Enable the spod collector (default: enabled).
      --collector.vm         Enable the vm collector (default: enabled).
      --web.listen-address=":9752"  
                             Address on which to expose metrics and web interface.
      --web.telemetry-path="/metrics"  
                             Path under which to expose metrics.
      --web.disable-exporter-metrics  
                             Exclude metrics about the exporter itself (promhttp_*, process_*, go_*).
      --web.max-requests=40  Maximum number of parallel scrape requests. Use 0 to disable.
      --collector.disable-defaults  
                             Set all collectors to disabled by default.
      --web.config=""        [EXPERIMENTAL] Path to config yaml file that can enable TLS or authentication.
      --log.level=info       Only log messages with the given severity or above. One of: [debug, info, warn, error]
      --log.format=logfmt    Output format of log messages. One of: [logfmt, json]
      --version              Show application version.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package collector includes all individual collectors to gather and export system metrics.
Package collector includes all individual collectors to gather and export system metrics.
Package https allows the implementation of TLS.
Package https allows the implementation of TLS.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL