A way to retrieve vCenter information and integrate it with Victoriametrics, to present it later with Grafana
Important
- vCenter 6.5 or newer
- Telegraf 1.0 or newer
- Prometheus / Victoriametrics 1.90
- Grafana 11 or newer
- DNS
- Create ReadOnly user
- Configure config.vpxd.stats.maxQueryMetrics
- configure Telegraf Input
[[inputs.vsphere]]
interval = "60s"
vcenters = [ "https://someaddress/sdk" ]
username = "[email protected]"
password = "secret"
insecure_skip_verify = true
force_discover_on_init = true
- Add Prometheus output section to your telegraf.conf
[[outputs.prometheus_client]]
listen = ":9273"
- Add your Telegraf agent name to DNS (example: telegraf-vcenter.local.domain)
- Check metrics - http://telegraf-vcenter.local.domain:9273/metrics
- Setup target for prometheus agents:
- targets:
- 'telegraf-vcenter.local.domain:9273'
labels:
job: vcenters
- Add your Victoriametrics as Prometheus datasource
- Import Dashboards from this repository
Repository for the VMware, Grafana, Telegraf an InfluxDB integration - https://github.com/jorgedlcruz/vmware-grafana