-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
Copyright 2022 Grafana Labs | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
|
||
Some code and components for this project have been derived from the following: | ||
|
||
Telegraf | ||
https://github.com/influxdata/telegraf | ||
Copyright (c) 2015-2020 InfluxData Inc. | ||
Licensed under the MIT License | ||
|
||
govmomi | ||
https://github.com/vmware/govmomi | ||
Copyright (c) 2014-2021 VMware, Inc. All Rights Reserved. | ||
Licensed under the Apache License, Version 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,36 @@ | ||
# vmware_exporter | ||
# vmware_exporter | ||
|
||
Note: This project is still in the early stages of development and not considered production ready. Very little testing | ||
against live environments has been done; defects are to be expected at this stage. With that said, any feedback is | ||
greatly appreciated. | ||
|
||
## Collect vSphere Performance Metrics | ||
The vSphere collector connects to a vCenter sdk endpoint and discovers managed objects in the datacenter inventory. | ||
Resource discovery will occur per scrape by default; however, it can also be configured to run in the background on an | ||
interval by setting the discovery interval command line flag. Currently, most of the object discovery code is ported | ||
from the telegraf vSphere plugin. | ||
|
||
For all resources discovered, the collector will attempt to gather the latest sample of aggregated instance data | ||
from the vSphere performance manager and expose them on the telemetry path (default /metrics). | ||
|
||
## Usage | ||
``` | ||
Usage of ./vmware_exporter: | ||
-vsphere.discovery-interval duration | ||
Object discovery duration interval. Discovery will occur per scrape if set to 0. | ||
-vsphere.mo-chunk-size int | ||
Managed object reference chunk size to use when fetching from vSphere. (default 5) | ||
-vsphere.url value | ||
vSphere SDK URL. | ||
-web.config string | ||
Path to config yaml file that can enable TLS or authentication. | ||
-web.listen-address string | ||
Address on which to expose metrics and web interface. (default ":9237") | ||
-web.telemetry-path string | ||
Path under which to expose metrics. (default "/metrics") | ||
``` | ||
|
||
### Example | ||
``` | ||
./vmware_exporter -vsphere.url http://user:[email protected]:8989/sdk -vsphere.mo-chunk-size 10 | ||
``` |