Monitor Azure Virtual Machine Scale Set (VMSS)
Capabilities
- Full-stack monitoring powered OneAgent
- Extensions for easy deployment of OneAgent
- Integration with Azure Monitor
- Enhanced support for Azure VM Metadata such as Azure regions, AutoScale detection, and more
Dynatrace provides a VM extension to install OneAgent on Azure Virtual Machine Scale Set (VMSS). The extension doesn't include the OneAgent installer. Instead, it uses the Dynatrace REST API to download the latest version from the cluster, unless a default OneAgent version is configured. OneAgent updates are provided automatically.
Prerequisites
-
Create a PaaS token.
-
Determine your environment ID.
-
Determine your server URL if required.
The server URL is required only if you use either of the following:
- a Dynatrace Managed endpoint
- an ActiveGate for a Dynatrace Managed or Dynatrace SaaS endpoint
(If you use Dynatrace SaaS, the URL is automatically generated from the environment ID.)
- Dynatrace Managed server URL:
https://{your-domain}/e/{your-environment-id}/api
- ActiveGate server URL:
https://<your-active-gate-IP-or-hostname>:9999/e/<your-environment-id>/api
(the ActiveGate port is configurable)
If you're using Dynatrace Managed, or if your cluster traffic should be routed through an ActiveGate, you need to configure the API endpoint used by the extension for downloading OneAgent.
Installation
The Dynatrace VM extension is available for Windows and Linux in all public Azure regions.
Install Dynatrace OneAgent VM extension via an ARM template
Alternatively to the main installation methods, you can make the Dynatrace site extension part of your ARM templates.
-
Place the JSON configuration for a virtual machine extension in the VMSS resource, under
extensions
inextensionProfile
.Example:
{"type": "Microsoft.Compute/virtualMachineScaleSets","sku": {...},"name": "<VMSS-Name>","apiVersion": "2018-06-01","location": "centralus","properties": {"upgradePolicy": {...},"virtualMachineProfile": {"osProfile": {...},"storageProfile": {...},"networkProfile": {...},"extensionProfile": {"extensions": [{"name": "dynatrace","properties": {"publisher": "dynatrace.ruxit","type": "<Extension-Type>","typeHandlerVersion": "<Extension-Version>","autoUpgradeMinorVersion": true,"settings": {"tenantId": "<Environment-ID>","token": "<API-Token>","enableLogAnalytics": "yes"}}}]}}}} -
Configure the JSON file.
{"name": "dynatrace","properties": {"publisher": "dynatrace.ruxit","type": "<Extension-Type>","typeHandlerVersion": "<Extension-Version>","autoUpgradeMinorVersion": true,"settings": {"tenantId": "<Environment-ID>","token": "<API-Token>","server": "<Server-Url>","enableLogAnalytics": "yes","hostGroup": "<Host-Group>"},}}ParameterRequiredDescriptionResource-GrouprequiredName of the resource group on which the VM is deployed.VMSS-NamerequiredName of the VMSS where you want to install the extension.Extension-TyperequiredFor Windows-based VMs, useoneAgentWindows
. For Linux-based VMs, useoneAgentLinux
.serveroptionalThe server URL, if you want to configure an alternative communication endpoint as described in Prerequisites.enableLogAnalyticsoptionalSet toyes
if you want to enable Log Monitoring.1o fetch the list of extension versions, run
az vm extension image list --name oneAgentLinux --publisher dynatrace.ruxit -
To check the deployment status, go to Deployment Status.
After installation is complete, restart your applications on the VM. Immediately after restart, OneAgent will begin monitoring them.
Troubleshooting
Restart the VMSS nodes via PowerShell, replacing all values marked with <...>
with your actual values:
Restart-AzureRmVmss -ResourceGroupName "<Resource-Group>" -VMScaleSetName "<VMSS-Name>"