Learn about the Wavefront VMware vSphere Integration.

vSphere Integration

The vSphere integration is a full-featured implementation offering pre-defined dashboards and predifined alert conditions. The integration is fully configurable.


Wavefront provides the following dashboards for vSphere:

  • Summary
  • Cluster
  • Datastore
  • ESXi Host Summary
  • ESXi Host Detail
  • VM Summary
  • VM Detail

Summary Dashboard

From the Summary dashboard you can easily navigate to all other vSphere dashboards.


Host and VM System Metrics

The integration includes system metrics for all ESXi Hosts and VMs that are part of your environment.


Metrics Configuration

Wavefront ingests vSphere metrics using the vSphere input plugin for Telegraf. For details on the metrics and on how to configure ingestion, see the vSphere plugin details on GitHub.

To see a list of the metrics for this integration, select the integration from https://github.com/influxdata/telegraf/tree/master/plugins/inputs.

vSphere Setup

vSphere metrics can be extensive. We recommend that you use a dedicated VM that will collect data using Telegraf.
This VM needs network connectivity to your vCenter Server. It can be from a VM deployed within your vCenter environment. Installing the Wavefront proxy on the same VM as Telegraf is not required.

Note: Do not install the vSphere integration components on your vCenter Server instance.

See vSphere Integration Details for guidance on optimizing performance, e.g. separating real-time and historical metrics.

Step 1. Install the Telegraf Agent

This integration uses the vSphere input plugin for Telegraf. If you’ve already installed Telegraf, you can skip to Step 2.

Log in to your Wavefront instance and follow the instructions in the Setup tab to install Telegraf and a Wavefront proxy in your environment. If a proxy is already running in your environment, you can select that proxy and the Telegraf install command connects with that proxy. Sign up for a free trial to check it out!

Step 2. Configure vSphere Input Plugin

Create a file called vsphere.conf in /etc/telegraf/telegraf.d and enter the following snippet:

  ## List of vCenter URLs to be monitored. These three lines must be uncommented
  ## and edited for the plugin to work.
  vcenters = [ "https://vcenter.local/sdk" ]
  username = "user@corp.local"
  password = "secret"

  ## VMs
  ## Typical VM metrics (if omitted or empty, all metrics are collected)
  vm_metric_include = [
  # vm_metric_exclude = [] ## Nothing is excluded by default
  # vm_instances = true ## true by default

  ## Hosts 
  ## Typical host metrics (if omitted or empty, all metrics are collected)
  host_metric_include = [
  # host_metric_exclude = [] ## Nothing excluded by default
  # host_instances = true ## true by default

  ## Clusters 
  # cluster_metric_include = [] ## if omitted or empty, all metrics are collected
  # cluster_metric_exclude = [] ## Nothing excluded by default
  # cluster_instances = true ## true by default

  ## Datastores 
  # datastore_metric_include = [] ## if omitted or empty, all metrics are collected
  # datastore_metric_exclude = [] ## Nothing excluded by default
  # datastore_instances = false ## false by default for Datastores

  ## Datacenters
  # datacenter_metric_include = [] ## if omitted or empty, all metrics are collected
  # datacenter_metric_exclude = [] ## Nothing excluded by default
  # datacenter_instances = false ## false by default for Datacenters

  ## Plugin Settings  
  ## separator character to use for measurement and field names (default: "_")
  # separator = "_"

  ## number of objects to retrieve per query for realtime resources (vms and hosts)
  ## set to 64 for vCenter 6.0 (default: 256)
  # max_query_objects = 256

  ## number of metrics to retrieve per query for non-realtime resources (clusters and datastores)
  ## set to 64 for vCenter 6.0 (default: 256)
  # max_query_metrics = 256

  ## number of go routines to use for collection and discovery of objects and metrics
  # collect_concurrency = 1
  # discover_concurrency = 1

  ## whether or not to force discovery of new objects on initial gather call before collecting metrics
  ## when true for large environments this may cause errors for time elapsed while collecting metrics
  ## when false (default) the first collection cycle may result in no or limited metrics while objects are discovered
  # force_discover_on_init = false

  ## the interval before (re)discovering objects subject to metrics collection (default: 300s)
  # object_discovery_interval = "300s"

  ## timeout applies to any of the api request made to vcenter
  # timeout = "20s"

  ## Optional SSL Config
  # ssl_ca = "/path/to/cafile"
  # ssl_cert = "/path/to/certfile"
  # ssl_key = "/path/to/keyfile"
  ## Use SSL but skip chain & host verification
  # insecure_skip_verify = false

Update the vcenters, username, and password properties according to your vCenter setup.

Many vCenter environments use self-signed certificates. Be sure to update the bottom portion of the above configuration and provide proper values for all applicable SSL Config settings that apply in your vSphere environment. In some environments, setting insecure_skip_verify = true will be necessary when the SSL certificates are not available.

To ensure consistent collection in larger vSphere environments you may need to increase concurrency for the plugin. Use the collect_concurrency setting to control concurrency.

Set collect_concurrency to the number of virtual machines divided by 1500 and rounded up to the nearest integer. For example, for 1200 VMs use 1 and for 2300 VMs use 2.

If you don’t want to collect instance information, such as CPU per core, use the vm_instances setting to control this collection. The setting defaults to true.

See VMware vSphere Integration Details for other recommendations.

Step 3. Setup Telegraf internal plugin

This step is optional, but highly recommended to monitor the health of Telegraf as it collects vSphere metrics at scale. Follow the instructions to setup the Telegraf internal plugin.

Step 4. Restart Telegraf

Run sudo service telegraf restart to restart your Telegraf agent.

Step 5. Tune Telegraf settings

After data is flowing into Wavefront, you may need to further tune Telegraf settings for buffer and batch sizes. This plugin is capable to collect hundreds of thousands of metrics per cycle and can overwhelm default Telegraf agent settings.

If you setup the Telegraf internal plugin (step 3), use this chart query to see how many metrics per cycle Telegraf is collecting: rate(ts("telegraf.internal.gather.metrics.gathered", input="vsphere")) * 60

Edit the /etc/telegraf/telegraf.conf to modify Telegraf agent level settings:

  1. Set metric_buffer_limit to be slightly larger than the # of metrics collected by the plugin as determined by the above query.
  2. Set metric_batch_size to 3000
  3. Set flush_interval to 5s

Step 6. Restart Telegraf

Run sudo service telegraf restart to restart your Telegraf agent.