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. 

  1. Enable the guest-level monitoring for Azure virtual machines
    • For new virtual machines

      1. Log in to the Azure portal.
      2. In the left pane, select Virtual machines.
      3. Click Add to create a virtual machine.
      4. On the Management tab, enable the OS guest diagnostics option.
      5. Add the required information to create the virtual machine and click Review + create.
        The virtual machine is created with the virtual machine agent installed in the guest OS.
        azure_etl_enabling_guest_os_diagnostics_new_vm.jpg
    • For existing virtual machines

      1. Log in to the Azure portal.
        In the left pane, select Virtual machines.
      2. A list of your virtual machines is displayed. 
      3. Select the virtual machine for which you want to enable guest-level monitoring.
      4. In the left pane of virtual machine, in the Monitoring category, click Diagnostic settings.
      5. On the Diagnostics settings page, click Enable guest-level monitoring.
        The Azure diagnostics agent is installed on the virtual machine and the metrics are displayed in the Overview tab.
        azure_etl_enabling_guest_os_diagnostics.jpg
  2. Configure and run the ETL. For more information, see Microsoft Azure - Azure API Extractor.
  3. 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


    1. Log in to the Azure portal.
      In the left pane, select Virtual machines.
    2. A list of your virtual machines is displayed. 
    3. Select the virtual machine for which you want to get the missing additional metrics. 
    4. In the left pane of the virtual machine, in the Monitoring category, click Diagnostic settings.
    5. On the Diagnostics settings page, click the Performance counters tab and then select the Custom option.
      A list of performance counters appears.
    6. Enter the name of the performance counter, specify the unit, and click Add.
      Repeat this step for each performance counter and then click Save.
    7. From the list of Azure services, click Resource groups
    8. In the left pane, from the list of resource groups, select the resource group in which your virtual machine resides.
    9. In the resource group settings, select Deployments. Select the latest deployment from the list. 
    10. 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.
    11. In the left pane, select Template > Add to library (preview).
    12. Add a name and description for the template, and save it. 

Steps to deploy the template on a virtual machine


    1. Log in to the Azure portal.
    2. From the list of Azure services, select Templates, and edit the template that you have created in the earlier section. 
    3. 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>"
    4. From the Template preview page, click Deploy. The Custom deployment page appears.
    5. 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’.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*