Azure memory monitoring

Azure Data Collection Rule (DCR) Setup for Memory Metrics
You have to enable memory data collection collection in Azure otherwise XorMon is not able to get it from Azure as it does not collect it by default.

Goal: Collect memory usage metrics from a VM and send them to a Log
Analytics Workspace using Azure Monitor Agent (AMA).

Prerequisites: - Azure VM (Windows or Linux) - Log Analytics Workspace -
Permissions to create Data Collection Rules - Azure Monitor Agent (AMA)

Steps:
  1. Open Azure Portal
    • Search for Data Collection Rules
    • Click + Create

  2. Basics
    • Name: vm-memory-dcr
    • Select Subscription and Resource Group
    • Region must match VM
    • Click Next
    • Platform Type: Linux or Windows

  3. Resources
    • Click + Add resources
    • Select your VM(s)
    • Confirm selection

  4. Add Data Source
    • Click + Add data source
    • Choose Performance counters

  5. Configure Memory Counters
    Windows:
    • \Memory\% Committed Bytes In Use
    • \Memory\Available Bytes
    • \Memory\Committed Bytes
    Linux: AvailableMemoryMB, UsedMemoryMB
    • or simply select Memory in basic tab
    • Set Sample Rate: 60 seconds

  6. Destination
    • Click + Add destination
    • Choose Azure Monitor Logs
    • Select your subscription and workspace