Plugin: go.d.plugin Module: vsphere
Monitors vSphere resources from vCenter servers.
Includes hosts, VMs, datastores, clusters, resource pools, and inventory counts.
Use the vcsa collector for vCenter Server Appliance health.
Use the snmp collector with the vmware-esx profile for
ESXi hardware, HBA, and environment sensors.
Those surfaces are intentionally not duplicated here by default.
Warning
The
vspherecollector cannot re-login and continue collecting metrics after a vCenter reboot. go.d.plugin needs to be restarted.
This collector is supported on all platforms.
This collector supports collecting metrics from multiple instances of this integration, including remote instances.
This integration doesn’t support auto-detection.
The default configuration for this integration does not impose any limits on data collection.
The default update_every is 20 seconds, and it doesn’t make sense to decrease the value.
VMware real-time statistics are generated at the 20-second specificity.
Note: Datastore and cluster performance metrics use 300-second (5-minute) historical intervals because VMware does not support real-time statistics for these entity types. Datastore capacity/status, cluster properties, and resource pool statistics are updated every collection cycle. Host and VM metrics use real-time 20-second intervals.
It is likely that 20 seconds is not enough for big installations and the value should be tuned.
To size a job, run the collector in debug mode and compare the discovery and collection timing lines. Discovery runs in a separate goroutine, while collection timing must stay comfortably below update_every.
Useful log lines include:
discovering : discovered ... the whole process took ...scraping : scraped metrics for ... hosts, process took ...scraping : scraped metrics for ... vms, process took ...metrics collected, process took ...Adjust update_every and timeout based on those timings and on the number of enabled optional surfaces.
You can configure the vsphere collector in two ways:
| Method | Best for | How to |
|---|---|---|
| UI | Fast setup without editing files | Go to Nodes → Configure this node → Collectors → Jobs, search for vsphere, then click + to add a job. |
| File | If you prefer configuring via file, or need to automate deployments (e.g., with Ansible) | Edit go.d/vsphere.conf and add a job. |
Important
UI configuration requires paid Netdata Cloud plan.
Configure a vCenter account that can read inventory objects, properties, and performance counters for the datacenters, clusters, ESXi hosts, VMs, datastores, and resource pools selected by the include filters.
tag_categories requires access to the vSphere Automation/CIS tagging APIs for the selected categories. custom_attributes requires access to custom field definitions and values for the selected inventory objects.
collect_datastore_clusters requires read access to StoragePod objects. collect_vsan requires vSAN Management API access and the vSAN Performance Service on the target clusters. collect_network_topology requires read access to Network and Distributed Virtual Port Group inventory objects.
The following options can be defined globally: update_every, autodetection_retry.
| Group | Option | Description | Default | Required |
|---|---|---|---|---|
| Collection | update_every | Data collection interval (seconds). | 20 | no |
| autodetection_retry | Autodetection retry interval (seconds). | 60 | no | |
| Target | url | Target endpoint URL. | https://vcenter.local | yes |
| timeout | HTTP request timeout (seconds). | 20 | no | |
| Discovery | discovery_interval | Hosts, VMs, datastores, clusters, and resource pools discovery interval (seconds). | 300 | no |
| Labels | tag_categories | vSphere tag category allowlist. | no | |
| custom_attributes | vSphere custom attribute allowlist. | no | ||
| High Cardinality | collect_datastore_clusters | Collect datastore cluster capacity and Storage DRS status. | no | no |
| datastore_cluster_include | Datastore cluster selector. | /* | no | |
| collect_vsan | Collect vSAN metrics. | no | no | |
| vsan_cluster_include | vSAN cluster selector. | /* | no | |
| vsan_host_include | vSAN host selector. | /* | no | |
| vsan_vm_include | vSAN VM selector. | /* | no | |
| Collection | collect_network_topology | Discover networks for the vSphere Topology function. | no | no |
| Filters | host_include | Hosts selector (filter). | /* | no |
| vm_include | VM selector (filter). | /* | no | |
| datastore_include | Datastore selector (filter). | /* | no | |
| cluster_include | Cluster selector (filter). Resource pools follow their owning cluster. | /* | no | |
| HTTP Auth | username | Username for Basic HTTP authentication. | yes | |
| password | Password for Basic HTTP authentication. | yes | ||
| TLS | tls_skip_verify | Skip TLS certificate and hostname verification (insecure). | no | no |
| tls_ca | Path to CA bundle used to validate the server certificate. | no | ||
| tls_cert | Path to client TLS certificate (for mTLS). | no | ||
| tls_key | Path to client TLS private key (for mTLS). | no | ||
| Virtual Node | vnode | Associates this data collection job with a Virtual Node. | no |
Disabled by default because vSphere tags are user-defined metadata
and can expose internal names, ownership, business unit, or
environment details. Each list item is one glob pattern matching
vSphere tag category names, so names with spaces are supported.
Use * only when every tag category is intentional.
Matching categories are exposed as labels named
vsphere_tag_<sanitized_category>. When a resource has multiple
tags in the same category, values are sorted and joined with the
pipe character.
tag_categories:
- "Environment"
- "Business Unit"
Disabled by default because vSphere custom attributes are
user-defined metadata and can expose internal names, ownership,
business unit, operational data, or secrets stored by administrators.
Custom attribute values are sent verbatim as labels. Each list
item is one glob pattern matching custom attribute names, so names
with spaces are supported. Use * only when every custom attribute
is intentional and none of the matched values contain secrets.
Matching attributes are exposed as labels named
vsphere_custom_attribute_<sanitized_name>.
custom_attributes:
- "Owner"
- "Cost Center"
Disabled by default because it adds a separate vSphere resource
class (StoragePod) to the collector output. When enabled, the
collector emits aggregate datastore-cluster capacity, utilization,
and Storage DRS status.
Applies only when collect_datastore_clusters is enabled. Values
use Netdata simple patterns and match
/Datacenter/DatastoreCluster, the datastore-cluster name, or
the vSphere managed object ID. Matching datastore clusters are
included in metrics, labels, cached discovery state, and topology
function output.
datastore_cluster_include:
- "/*"
Disabled by default because it uses the vSAN Management API and vSAN Performance Service, and adds extra vCenter queries. When enabled, it emits vSAN cluster capacity, vSAN cluster health, and vSAN cluster, host, and VM performance metrics for discovered vSAN-enabled clusters. Use the vSAN selectors below to choose the concrete vSAN performance entity refs queried. vSAN events are not collected by this option.
Applies only when collect_vsan is enabled. Values use Netdata
simple patterns and match /Datacenter/Cluster, the cluster
name, the vSphere managed object ID, or vsan_uuid:<uuid>.
vsan_cluster_include:
- "/*"
- "vsan_uuid:52b..."
Applies only when collect_vsan is enabled. Values use Netdata
simple patterns and match /Datacenter/Cluster/Host, the host
name, the vSphere managed object ID, or
vsan_node_uuid:<uuid>.
vsan_host_include:
- "/*"
- "vsan_node_uuid:52b..."
Applies only when collect_vsan is enabled. Values use Netdata
simple patterns and match /Datacenter/Cluster/Host/VM, the VM
name, the vSphere managed object ID, or
instance_uuid:<uuid>.
vsan_vm_include:
- "/*"
- "instance_uuid:52b..."
Disabled by default to avoid extra vCenter discovery calls for existing users. When enabled, the collector discovers vSphere Network and Distributed Virtual Port Group objects and includes their cached accessibility/status and host/VM relationships in the vSphere Topology function. It does not create charts or metrics.
Metrics of hosts matching the selector will be collected.
Include pattern syntax: “/Datacenter pattern/Cluster pattern/Host pattern”.
Match pattern syntax: simple patterns.
Syntax:
host_include:
- '/DC1/*' # all hosts from datacenter DC1
- '/DC2/*/!Host2 *' # all hosts from datacenter DC2 except HOST2
- '/DC3/Cluster3/*' # all hosts from DC3, cluster Cluster3
Metrics of VMs matching the selector will be collected.
Include pattern syntax: “/Datacenter pattern/Cluster pattern/Host pattern/VM pattern”.
Match pattern syntax: simple patterns.
Syntax:
vm_include:
- '/DC1/*' # all VMs from datacenter DC1
- '/DC2/*/*/!VM2 *' # all VMs from DC2 except VM2
- '/DC3/Cluster3/*' # all VMs from DC3, cluster Cluster3
Metrics of datastores matching the selector will be collected.
Include pattern syntax: “/Datacenter pattern/Datastore pattern”.
Match pattern syntax: simple patterns.
Syntax:
datastore_include:
- '/DC1/*' # all datastores from datacenter DC1
- '/DC2/!DS2 *' # all datastores from DC2 except DS2
Metrics of clusters and their resource pools matching the selector will be collected.
Include pattern syntax: “/Datacenter pattern/Cluster pattern”.
Match pattern syntax: simple patterns.
Syntax:
cluster_include:
- '/DC1/*' # all clusters from datacenter DC1
- '/DC2/!Cluster2 *' # all clusters from DC2 except Cluster2
Configure the vsphere collector from the Netdata web interface:
The configuration file name for this integration is go.d/vsphere.conf.
The file format is YAML. Generally, the structure is:
update_every: 1
autodetection_retry: 0
jobs:
- name: some_name1
- name: some_name2
You can edit the configuration file using the edit-config script from the
Netdata config directory.
cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config go.d/vsphere.conf
A basic example configuration.
jobs:
- name : vcenter1
url : https://203.0.113.1
username : [email protected]
password : somepassword
Note
When you define multiple jobs, their names must be unique.
Collecting metrics from local and remote instances.
jobs:
- name : vcenter1
url : https://203.0.113.1
username : [email protected]
password : somepassword
- name : vcenter2
url : https://203.0.113.10
username : [email protected]
password : somepassword
Metrics grouped by scope.
The scope defines the instance that the metric belongs to. An instance is uniquely identified by a set of labels.
These metrics refer to the discovered vSphere inventory for this collector job.
Labels:
| Label | Description |
|---|---|
| id | Static inventory instance ID |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| vsphere.inventory_objects | datacenters, folders, clusters, hosts, vms, datastores, resource_pools | objects |
These metrics refer to the Virtual Machine.
Labels:
| Label | Description |
|---|---|
| id | vSphere managed object reference ID |
| datacenter | Datacenter name |
| cluster | Cluster name |
| host | Host name |
| vm | Virtual Machine name |
| vsphere_tag_<category> | vSphere tag label; present only for categories matched by tag_categories; category names are sanitized for label keys and multiple tags in one category are sorted and joined with the pipe character |
| vsphere_custom_attribute_<name> | vSphere custom attribute label; present only for attributes matched by custom_attributes; attribute names are sanitized for label keys |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| vsphere.vm_cpu_utilization | used | percentage |
| vsphere.vm_mem_utilization | used | percentage |
| vsphere.vm_mem_usage | granted, consumed, active, shared | KiB |
| vsphere.vm_mem_swap_usage | swapped | KiB |
| vsphere.vm_mem_swap_io | in, out | KiB/s |
| vsphere.vm_disk_io | read, write | KiB/s |
| vsphere.vm_disk_max_latency | latency | milliseconds |
| vsphere.vm_net_traffic | received, sent | KiB/s |
| vsphere.vm_net_packets | received, sent | packets |
| vsphere.vm_net_drops | received, sent | drops |
| vsphere.vm_overall_status | green, red, yellow, gray | status |
| vsphere.vm_power_state | powered_on, powered_off, suspended | status |
| vsphere.vm_connection_state | connected, disconnected, orphaned, inaccessible, invalid | status |
| vsphere.vm_tools_running_status | running, not_running, executing_scripts, unknown | status |
| vsphere.vm_tools_version_status | current, need_upgrade, not_installed, unmanaged, too_old, supported_old, supported_new, too_new, blacklisted, unknown | status |
| vsphere.vm_consolidation_needed | needed, not_needed | status |
| vsphere.vm_system_uptime | uptime | seconds |
| vsphere.vm_config_cpu | vcpus | vCPUs |
| vsphere.vm_config_memory | memory | MiB |
| vsphere.vm_config_devices | disks, nics | devices |
| vsphere.vm_storage_usage | committed, uncommitted, unshared | bytes |
| vsphere.vm_snapshot_count | count | snapshots |
| vsphere.vm_snapshot_max_age | age | seconds |
| vsphere.vm_snapshot_max_chain_depth | depth | snapshots |
These aggregate metrics refer to VM power and energy and are collected for discovered powered-on VMs when vSphere exposes the corresponding power counters.
Labels:
| Label | Description |
|---|---|
| id | vSphere managed object reference ID of the VM |
| datacenter | Datacenter name |
| cluster | Cluster name |
| host | Host name |
| vm | Virtual Machine name |
| vsphere_tag_<category> | vSphere tag label; present only for categories matched by tag_categories; category names are sanitized for label keys and multiple tags in one category are sorted and joined with the pipe character |
| vsphere_custom_attribute_<name> | vSphere custom attribute label; present only for attributes matched by custom_attributes; attribute names are sanitized for label keys |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| vsphere.vm_power_usage | power | watts |
| vsphere.vm_energy_usage | energy | joules |
These optional metrics refer to VM vSAN performance and are collected only when collect_vsan is enabled.
Labels:
| Label | Description |
|---|---|
| id | vSphere managed object reference ID of the VM |
| datacenter | Datacenter name |
| cluster | Cluster name |
| host | Host name |
| vm | Virtual Machine name |
| vm_instance_uuid | VM instance UUID used by vSAN performance entity references |
| vsphere_tag_<category> | vSphere tag label; present only for categories matched by tag_categories; category names are sanitized for label keys and multiple tags in one category are sorted and joined with the pipe character |
| vsphere_custom_attribute_<name> | vSphere custom attribute label; present only for attributes matched by custom_attributes; attribute names are sanitized for label keys |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| vsphere.vsan_vm_operations | read, write | operations/s |
| vsphere.vsan_vm_throughput | read, write | bytes/s |
| vsphere.vsan_vm_latency | read, write | microseconds |
These aggregate metrics refer to ESXi host power, energy, and power capacity and are collected for discovered powered-on hosts when vSphere exposes the corresponding power counters.
Labels:
| Label | Description |
|---|---|
| id | vSphere managed object reference ID of the host |
| datacenter | Datacenter name |
| cluster | Cluster name |
| host | Host name |
| vsphere_tag_<category> | vSphere tag label; present only for categories matched by tag_categories; category names are sanitized for label keys and multiple tags in one category are sorted and joined with the pipe character |
| vsphere_custom_attribute_<name> | vSphere custom attribute label; present only for attributes matched by custom_attributes; attribute names are sanitized for label keys |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| vsphere.host_power_usage | power, cap | watts |
| vsphere.host_power_capacity_usage | used, usable, idle, system, vm | watts |
| vsphere.host_power_capacity_utilization | used | percentage |
| vsphere.host_energy_usage | energy | joules |
These optional metrics refer to ESXi host vSAN performance and are collected only when collect_vsan is enabled.
Labels:
| Label | Description |
|---|---|
| id | vSphere managed object reference ID of the host |
| datacenter | Datacenter name |
| cluster | Cluster name |
| host | Host name |
| vsan_node_uuid | vSAN host node UUID used by vSAN performance entity references |
| vsphere_tag_<category> | vSphere tag label; present only for categories matched by tag_categories; category names are sanitized for label keys and multiple tags in one category are sorted and joined with the pipe character |
| vsphere_custom_attribute_<name> | vSphere custom attribute label; present only for attributes matched by custom_attributes; attribute names are sanitized for label keys |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| vsphere.vsan_host_operations | read, write | operations/s |
| vsphere.vsan_host_throughput | read, write | bytes/s |
| vsphere.vsan_host_latency | read, write | microseconds |
| vsphere.vsan_host_congestions | congestions | congestions/s |
| vsphere.vsan_host_cache_hit_rate | hit_rate | percentage |
These metrics refer to the ESXi host.
Labels:
| Label | Description |
|---|---|
| id | vSphere managed object reference ID |
| datacenter | Datacenter name |
| cluster | Cluster name |
| host | Host name |
| vsphere_tag_<category> | vSphere tag label; present only for categories matched by tag_categories; category names are sanitized for label keys and multiple tags in one category are sorted and joined with the pipe character |
| vsphere_custom_attribute_<name> | vSphere custom attribute label; present only for attributes matched by custom_attributes; attribute names are sanitized for label keys |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| vsphere.host_cpu_utilization | used | percentage |
| vsphere.host_mem_utilization | used | percentage |
| vsphere.host_mem_usage | granted, consumed, active, shared, sharedcommon | KiB |
| vsphere.host_mem_swap_io | in, out | KiB/s |
| vsphere.host_disk_io | read, write | KiB/s |
| vsphere.host_disk_max_latency | latency | milliseconds |
| vsphere.host_net_traffic | received, sent | KiB/s |
| vsphere.host_net_packets | received, sent | packets |
| vsphere.host_net_drops | received, sent | drops |
| vsphere.host_net_errors | received, sent | errors |
| vsphere.host_overall_status | green, red, yellow, gray | status |
| vsphere.host_power_state | powered_on, powered_off, standby, unknown | status |
| vsphere.host_connection_state | connected, not_responding, disconnected | status |
| vsphere.host_maintenance_status | normal, in_maintenance | status |
| vsphere.host_system_uptime | uptime | seconds |
These metrics refer to the Datastore.
Labels:
| Label | Description |
|---|---|
| id | vSphere managed object reference ID |
| datacenter | Datacenter name |
| datastore | Datastore name |
| type | Datastore type (VMFS, NFS, NFS41, vsan, VVOL, PMEM) |
| vsphere_tag_<category> | vSphere tag label; present only for categories matched by tag_categories; category names are sanitized for label keys and multiple tags in one category are sorted and joined with the pipe character |
| vsphere_custom_attribute_<name> | vSphere custom attribute label; present only for attributes matched by custom_attributes; attribute names are sanitized for label keys |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| vsphere.datastore_disk_io | read, write | KiB/s |
| vsphere.datastore_disk_iops | reads, writes | operations/s |
| vsphere.datastore_disk_latency | read, write | milliseconds |
| vsphere.datastore_space_utilization | used | percentage |
| vsphere.datastore_space_usage | capacity, free, used, uncommitted | bytes |
| vsphere.datastore_overall_status | green, red, yellow, gray | status |
| vsphere.datastore_accessibility_status | accessible, inaccessible | status |
| vsphere.datastore_maintenance_status | normal, entering_maintenance, in_maintenance, unknown | status |
| vsphere.datastore_multiple_host_access | enabled, disabled, unknown | status |
These optional metrics refer to datastore clusters (StoragePod objects) and are collected only when collect_datastore_clusters is enabled.
Labels:
| Label | Description |
|---|---|
| id | vSphere managed object reference ID |
| datacenter | Datacenter name |
| datastore_cluster | Datastore cluster name |
| vsphere_tag_<category> | vSphere tag label; present only for categories matched by tag_categories; category names are sanitized for label keys and multiple tags in one category are sorted and joined with the pipe character |
| vsphere_custom_attribute_<name> | vSphere custom attribute label; present only for attributes matched by custom_attributes; attribute names are sanitized for label keys |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| vsphere.datastore_cluster_space_utilization | used | percentage |
| vsphere.datastore_cluster_space_usage | capacity, free, used | bytes |
| vsphere.datastore_cluster_storage_drs_status | enabled, disabled | status |
| vsphere.datastore_cluster_overall_status | green, red, yellow, gray | status |
These optional metrics refer to vSAN cluster capacity, health, and performance and are collected only when collect_vsan is enabled.
Labels:
| Label | Description |
|---|---|
| id | vSphere managed object reference ID of the cluster |
| datacenter | Datacenter name |
| cluster | Cluster name |
| vsan_uuid | vSAN cluster UUID used by vSAN performance entity references |
| vsphere_tag_<category> | vSphere tag label; present only for categories matched by tag_categories; category names are sanitized for label keys and multiple tags in one category are sorted and joined with the pipe character |
| vsphere_custom_attribute_<name> | vSphere custom attribute label; present only for attributes matched by custom_attributes; attribute names are sanitized for label keys |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| vsphere.vsan_cluster_space_usage | used, free, total | bytes |
| vsphere.vsan_cluster_space_utilization | used | percentage |
| vsphere.vsan_cluster_health_status | green, yellow, red, unknown | status |
| vsphere.vsan_cluster_operations | read, write | operations/s |
| vsphere.vsan_cluster_throughput | read, write | bytes/s |
| vsphere.vsan_cluster_latency | read, write | microseconds |
| vsphere.vsan_cluster_congestions | congestions | congestions/s |
These metrics refer to the vSphere Cluster.
Labels:
| Label | Description |
|---|---|
| id | vSphere managed object reference ID |
| datacenter | Datacenter name |
| cluster | Cluster name |
| vsphere_tag_<category> | vSphere tag label; present only for categories matched by tag_categories; category names are sanitized for label keys and multiple tags in one category are sorted and joined with the pipe character |
| vsphere_custom_attribute_<name> | vSphere custom attribute label; present only for attributes matched by custom_attributes; attribute names are sanitized for label keys |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| vsphere.cluster_hosts | total, effective | hosts |
| vsphere.cluster_cpu_capacity | total, effective | MHz |
| vsphere.cluster_mem_capacity | total, effective | bytes |
| vsphere.cluster_cpu_topology | cores, threads | count |
| vsphere.cluster_drs_config | enabled | status |
| vsphere.cluster_drs_mode | manual, partially_automated, fully_automated, unknown | status |
| vsphere.cluster_drs_vmotion_rate | rate | level |
| vsphere.cluster_ha_config | enabled, admission_control | status |
| vsphere.cluster_ha_host_monitoring | enabled, disabled, unknown | status |
| vsphere.cluster_ha_vm_monitoring | disabled, vm_monitoring_only, vm_and_app_monitoring, unknown | status |
| vsphere.cluster_ha_vm_component_protection | enabled, disabled, unknown | status |
| vsphere.cluster_overall_status | green, red, yellow, gray | status |
| vsphere.cluster_vmotions | vmotions | migrations |
| vsphere.cluster_drs_score | score | percentage |
| vsphere.cluster_drs_balance | current, target | score |
| vsphere.cluster_vm_count | total, powered_off | VMs |
| vsphere.cluster_usage_cpu | demand, entitled, reserved | MHz |
| vsphere.cluster_usage_mem | demand, entitled, reserved | MB |
| vsphere.cluster_cpu_utilization | used | percentage |
| vsphere.cluster_cpu_usage | used, total | MHz |
| vsphere.cluster_mem_utilization | used | percentage |
| vsphere.cluster_mem_usage | consumed, active, granted, shared, overhead, swap_used | KiB |
| vsphere.cluster_services_fairness | cpu, memory | score |
| vsphere.cluster_services_effective_cpu | effective_cpu | MHz |
| vsphere.cluster_services_effective_mem | effective_mem | MB |
| vsphere.cluster_services_failover | failures_tolerable | failures |
| vsphere.cluster_vm_migrations | vmotion, svmotion, xvmotion | operations |
| vsphere.cluster_vm_lifecycle | poweron, poweroff, create, destroy, clone, deploy | operations |
| vsphere.cluster_vm_management | reconfigure, reset, suspend, register, unregister | operations |
| vsphere.cluster_vm_guest_ops | reboot, shutdown, standby | operations |
| vsphere.cluster_vm_cold_migrations | change_ds, change_host, change_host_ds | operations |
These metrics refer to the vSphere Resource Pool.
Labels:
| Label | Description |
|---|---|
| id | vSphere managed object reference ID |
| datacenter | Datacenter name |
| cluster | Cluster name |
| resource_pool | Resource Pool name |
| vsphere_tag_<category> | vSphere tag label; present only for categories matched by tag_categories; category names are sanitized for label keys and multiple tags in one category are sorted and joined with the pipe character |
| vsphere_custom_attribute_<name> | vSphere custom attribute label; present only for attributes matched by custom_attributes; attribute names are sanitized for label keys |
Metrics:
| Metric | Dimensions | Unit |
|---|---|---|
| vsphere.resource_pool_cpu_usage | usage, demand | MHz |
| vsphere.resource_pool_cpu_entitlement | distributed | MHz |
| vsphere.resource_pool_cpu_allocation | reservation_used, unreserved_for_vm, max_usage | MHz |
| vsphere.resource_pool_mem_usage | host, guest | MB |
| vsphere.resource_pool_mem_entitlement | distributed | MB |
| vsphere.resource_pool_mem_allocation | reservation_used, unreserved_for_vm, max_usage | bytes |
| vsphere.resource_pool_mem_breakdown | private, shared, swapped, ballooned, overhead, consumed_overhead, compressed | MB |
| vsphere.resource_pool_cpu_config | reservation, limit | MHz |
| vsphere.resource_pool_mem_config | reservation, limit | MB |
| vsphere.resource_pool_overall_status | green, red, yellow, gray | status |
The following alerts are available:
| Alert name | On metric | Description |
|---|---|---|
| vsphere_vm_cpu_utilization | vsphere.vm_cpu_utilization | Virtual Machine CPU utilization |
| vsphere_vm_mem_utilization | vsphere.vm_mem_utilization | Virtual Machine memory utilization |
| vsphere_vm_snapshot_chain_depth | vsphere.vm_snapshot_max_chain_depth | Virtual Machine snapshot maximum chain depth |
| vsphere_vm_snapshot_age | vsphere.vm_snapshot_max_age | Virtual Machine oldest snapshot age |
| vsphere_host_cpu_utilization | vsphere.host_cpu_utilization | ESXi Host CPU utilization |
| vsphere_host_mem_utilization | vsphere.host_mem_utilization | ESXi Host memory utilization |
Important: Debug mode is not supported for data collection jobs created via the UI using the Dyncfg feature.
To troubleshoot issues with the vsphere collector, run the go.d.plugin with the debug option enabled. The output
should give you clues as to why the collector isn’t working.
Navigate to the plugins.d directory, usually at /usr/libexec/netdata/plugins.d/. If that’s not the case on
your system, open netdata.conf and look for the plugins setting under [directories].
cd /usr/libexec/netdata/plugins.d/
Switch to the netdata user.
sudo -u netdata -s
Run the go.d.plugin to debug the collector:
./go.d.plugin -d -m vsphere
To debug a specific job:
./go.d.plugin -d -m vsphere -j jobName
If you’re encountering problems with the vsphere collector, follow these steps to retrieve logs and identify potential issues:
Use the following command to view logs generated since the last Netdata service restart:
journalctl _SYSTEMD_INVOCATION_ID="$(systemctl show --value --property=InvocationID netdata)" --namespace=netdata --grep vsphere
Locate the collector log file, typically at /var/log/netdata/collector.log, and use grep to filter for collector’s name:
grep vsphere /var/log/netdata/collector.log
Note: This method shows logs from all restarts. Focus on the latest entries for troubleshooting current issues.
If your Netdata runs in a Docker container named “netdata” (replace if different), use this command:
docker logs netdata 2>&1 | grep vsphere
If the logs show vsphere:host-no-perf-samples or vsphere:vm-no-perf-samples, verify that the configured account can read vCenter performance counters for the selected hosts and VMs, and that the entities are powered on when performance metrics are expected.
If the logs show vsphere:periodic-discovery-error, check vCenter reachability, account permissions for the enabled optional surfaces, and whether the configured timeout is large enough for the inventory size.
The collector cannot always recover an existing session after a vCenter reboot. Restart go.d.plugin if collection does not resume after vCenter becomes available again.
Want a personalised demo of Netdata for your use case?