VMware vSphere monitoring
Setting up Dynatrace monitoring of a VMware platform is easy, using ActiveGate as a communication gateway. ActiveGate receives the data from VMware and sends it to the Dynatrace Cluster. OneAgent, which is installed on each virtual machine, provides complementary data about your infrastructure health.
The flow of monitoring data from your VMware platform to Dynatrace is illustrated in the diagram below.
The following applies to VMware only. For other virtualization platforms, you only need to install OneAgent for virtualized host monitoring, as the monitoring of virtualization management layers is supported only for VMware.
Once Dynatrace OneAgent is installed and process monitoring is activated on a virtual machine, you can see what's happening in your operating system—specifically, how your host-based processes behave and communicate.
Dynatrace collects information related to virtualized CPU usage, memory consumption, and storage-related activities. Dynatrace also detects virtual machine migrations (vMotion) and the creation of new virtual machines.
Follow the steps below to set up monitoring on the virtualization management layer of your VMware vCenter or standalone ESXi hosts.
- Read-only access to vCenter server, or access to the standalone ESXi host.
Install and configure ActiveGate
Install an Environment ActiveGate in your data center before connecting Dynatrace to your VMware platform.
For Dynatrace Managed you can use the embedded ActiveGate running on the cluster node. However, the Cluster ActiveGate is typically used to forward RUM and/or Synthetic monitoring data to the Dynatrace Cluster. We recommend that you don't overutilize this ActiveGate with another type of monitoring data. Depending on the VMware size, you might consider using a dedicated ActiveGate per environment.
For virtualization monitoring, the
vmware_monitoring_enabled property in
custom.properties must be set to
true (default value).
See Customize ActiveGate properties for details.
Connect Dynatrace to your VMware platform
To connect Dynatrace to your VMware platform
In the Dynatrace menu, go to Settings > Cloud and virtualization > VMware, and select Connect new instance.
Select the IP address or name of the vCenter server or standalone ESXi host you want to monitor (skip the
Check the network/proxy settings.
If you get a communication error even though the data provided is correct, it might be because of your network/proxy settings. We recommend that you revise the network/proxy settings when adding a new VMware integration.
optional You can also bypass the proxy for connecting with vCenter or ESXi when configuring the VMware integration. Modify ActiveGate configuration to exclude a specific host from proxy.
Enter the associated user credentials so that ActiveGate can sign in and collect monitoring data. The required privileges for this user are view and read-only access. Administrator-level access isn't required to enable monitoring (no changes to your VMware settings are required).
You don’t need to add ESXi hosts individually if they're managed by a vCenter server.
Select Connect.Time synchronization
Differences in system time can lead to missing VMware metrics. For Dynatrace to properly display monitoring data, you must synchronize time settings on all monitored host environments and vCenters with an NTP server.
To cover your entire virtual infrastructure, repeat these steps for all other vCenter servers or standalone ESXi hosts in your environment.
Limit VMware infrastructure monitoring
After you set up VMware monitoring, you might want to limit which infrastructural elements (such as hosts and VMs) should actually be monitored by Dynatrace. To do this, you can use the permissions mechanism available in VMware. For more information, see Limit VMware infrastructure monitoring using permissions.
Troubleshoot VMware connection
If you're using an ActiveGate deployed on a Windows machine, use the following procedure to verify that your VMware infrastructure is working.
- Install VMware PowerCLI.
- Enable script execution in PowerShell.
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
- Connect to the vSphere server using your Dynatrace credentials.
Connect-VIServer -Server <vsphere_address> -Protocol https -User <username> -Password <password>
- Test the connection.