Monitoring Memory Metrics for Azure Instances

Commander provides the ability to monitor Azure memory usage. While Azure collects CPU, network and disk usage metrics, it doesn't provide memory usage metrics by default. You can enable memory usage monitoring so that:

During provisioning, when you enable memory usage monitoring for a new VM, Commander will attach an extension to the VM, which will send the data to a storage account that you choose.

Two Azure memory metrics for Windows and Linux and their Commander equivalents are:

Windows memory metric

Linux memory metric

Commander equivalent

Description

Committed Bytes

UsedMemory

Memory Consumed (MB)

Reports only memory allocated by applications and the operating system; excludes memory in cache and buffers.

% Committed Bytes in Use

PercentUsedMemory

Memory Used (%)

Reports only memory allocated by applications and the operating system; excludes memory in cache and buffers.

To enable memory usage monitoring for new Azure VMs, the following conditions must be met:

  • Memory usage monitoring must be enabled as described in this topic.
  • The credentials used to add the Azure subscription to Commander must have read/write permissions on the storage account.
  • The deployed VM must have internet access, so that memory metrics data can be sent to the storage account.

Enabling memory usage monitoring

During configuration, specify where to store the data that's coming from Azure. You create a place to save the memory usage data by selecting a storage account in the destination configuration.

Diagnostics Storage Account

To allow Commander to send memory metrics to the storage account you just created, enable the Monitor Memory Usage checkbox for the service catalog entry. You can find this option on the Infrastructure tab of the Component Blueprints page.

See Adding Azure Services to the Catalog for more information.

arm-metrics

In the manual provisioning wizard, choose the storage account that will be used to save the data.

manualwithdiagnostics

You can also turn on memory monitoring at any time in the Azure portal and Commander will retrieve metrics. For Windows, see https://docs.microsoft.com/en-us/azure/virtual-machines/windows/tutorial-monitoring. For Linux, see https://docs.microsoft.com/en-us/azure/virtual-machines/linux/tutorial-monitoring. This is useful to view the metrics of individual VMs, but is not practical for obtaining metrics of a large number of VMs.