Collecting additional metrics using Guest OS diagnostics
Microsoft Azure provides a set of standard host-level metrics. Guest OS metrics are not available by default. You can use guest-level monitoring to collect metrics of your guest virtual machines. The metrics are useful for investigating the capacity-related issues that might occur in your Azure environment. When you run the Microsoft Azure API ETL, these metrics are imported into the TrueSight Capacity Optimization database.
- Configure and run the ETL. For more information, see Microsoft Azure - Azure API Extractor.
- Verify that the metrics are displayed in the Workspace.
Performance metrics for Linux virtual machines
The following table lists the metrics that are available when the guest-level monitoring option is enabled in Azure for Linux virtual machines:
Performance metrics for Windows virtual machines
The following tables list the metrics that are available when the guest-level monitoring option is enabled in Azure for Windows virtual machines:
1 - Indicates that the metrics are available in BMC Helix Continuous Optimization only when the following steps are performed on your Windows virtual machines.
Steps to create the template
- Log in to the Azure portal.
In the left pane, select Virtual machines. - A list of your virtual machines is displayed.
- Select the virtual machine for which you want to get the missing additional metrics.
- In the left pane of the virtual machine, in the Monitoring category, click Diagnostic settings.
- On the Diagnostics settings page, click the Performance counters tab and then select the Custom option.
A list of performance counters appears. - Enter the name of the performance counter, specify the unit, and click Add.
Repeat this step for each performance counter and then click Save. - From the list of Azure services, click Resource groups.
- In the left pane, from the list of resource groups, select the resource group in which your virtual machine resides.
- In the resource group settings, select Deployments. Select the latest deployment from the list.
- From the Overview page, in the Deployment details expander, ensure that the name of the virtual machine is correct. This VM must be the VM for which you have added the performance counters.
- In the left pane, select Template > Add to library (preview).
- Add a name and description for the template, and save it.
- Log in to the Azure portal.
Steps to deploy the template on a virtual machine
- Log in to the Azure portal.
- From the list of Azure services, select Templates, and edit the template that you have created in the earlier section.
- On the Edit Template page, click Next:ARM Template update the fields, and save the template:
- "name": "<vm_name>/Microsoft.Insights.VMDiagnostisSettings"
- "resourceId": '/subscriptions/<subscription_id>/resourceGroups/resourcegroup/providers/Microsoft.Compute/virtualMachines/<vm_name>"
- From the Template preview page, click Deploy. The Custom deployment page appears.
- Maintain the default fields, choose the Resource group, agree to the terms and conditions, and click Purchase. Note that the Purchase
The deployment to the resource group begins. The metrics are available on the virtual machines after the deployment is complete.
2 - Indicates metrics that are set at level 4. These metrics are imported only when the collection level of the ETL is set to ‘Extended’.