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 resource-related issues that might occur in your Azure environment.  

  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 connector. For more information, see Microsoft-Azure-cloud-connector.

The following table lists the metrics that are available when the guest-level monitoring option is enabled in Azure:

Metrics for Windows virtual machines

BMC Helix Cloud Cost metric

Unit

Microsoft Azure metric

CPU_UTIL

%

Percentage CPU

NET_TRANSFER_RATE

byte/sec

Derived
Disk Read Bytes + Disk Write Bytes
(Average, Bytes)

DISK_TRANSFER_RATE

byte/sec

Derived
Network In + Network Out
(Average, Bytes)

CPU_SIZE

cores

Instance View API
numberOfCores

CPU_USED

cores fraction

CPU_SIZE x CPU_UTIL

MEMORY_SIZE

byte

Instance View API
memoryInMB

MEMORY_USED

byte

memory_size - mem_free

mem_free: \\Memory\\Available Bytes

STORAGE_SIZE

byte

TOTAL_LDISK_SIZE = (FREE_MEGABYTES x 1024 x 1024) x 100/LDISK_PERCENT_FREE_SPACE

  • FREE_MEGABYTES = \\LogicalDisk(_Total)\\Free Megabytes
  • LDISK_PERCENT_FREE_SPACE = \\LogicalDisk(_Total)\\% Free Space

STORAGE_USED

byte

TOTAL_LDISK_USED = TOTAL_LDISK_SIZE - ((FREE_MEGABYTES x 1024 x 1024))

Metrics for Linux virtual machines

BMC Helix Cloud Cost metric

Unit

Microsoft Azure metric

CPU_UTIL

%

Percentage CPU

NET_TRANSFER_RATE

byte/sec

Derived
Disk Read Bytes + Disk Write Bytes
(Average, Bytes)

DISK_TRANSFER_RATE

byte/sec

Network In + Network Out
(Average, Bytes)

CPU_SIZE

cores

Instance View API
numberOfCores

CPU_USED

cores fraction

CPU_SIZE x CPU_UTIL

MEMORY_SIZE

byte

Instance View API
memoryInMB

MEMORY_USED

byte

memory_size - mem_free

mem_free: \\Memory\\AvailableMemory

STORAGE_SIZE

byte

Microsoft Azure does not provide this metric.

STORAGE_USED

byte

Microsoft Azure does not provide this metric.



 

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