Log Analytics metrics for Memory & CPU Load

%3CLINGO-SUB%20id%3D%22lingo-sub-1432737%22%20slang%3D%22en-US%22%3ELog%20Analytics%20metrics%20for%20Memory%20%26amp%3B%20CPU%20Load%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1432737%22%20slang%3D%22en-US%22%3E%3CP%3EHow%20to%20find%20equivalent%20metrics%2Fcounter%20in%20Azure%20Log%20Analytics%20for%20below%3C%2FP%3E%3CTABLE%3E%3CTBODY%3E%3CTR%3E%3CTD%20width%3D%22242.667px%22%3E%3CP%3E%3CSTRONG%3EAzure%20Metrics%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22244px%22%3E%3CP%3E%3CSTRONG%3EWindows%20VM%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22236.667px%22%3E%3CP%3E%3CSTRONG%3ELinux%20VM%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%22242.667px%22%3E%3CP%3EPhysical%20memory%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22244px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22236.667px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%22242.667px%22%3E%3CP%3EPagefile%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22244px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22236.667px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%22242.667px%22%3E%3CP%3EVirtual%20memory%20usage%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22244px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22236.667px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%22242.667px%22%3E%3CP%3EPhysical%20memory%20usage%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22244px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22236.667px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%22242.667px%22%3E%3CP%3ENumber%20of%20physical%20CPUs%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22244px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22236.667px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%22242.667px%22%3E%3CP%3ENumber%20of%20Logical%20CPUs%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22244px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22236.667px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3CTR%3E%3CTD%20width%3D%22242.667px%22%3E%3CP%3EProcessor%20queue%20length%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22244px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3CTD%20width%3D%22236.667px%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FTD%3E%3C%2FTR%3E%3C%2FTBODY%3E%3C%2FTABLE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1432737%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1432762%22%20slang%3D%22en-US%22%3ERe%3A%20Log%20Analytics%20metrics%20for%20Memory%20%26amp%3B%20CPU%20Load%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1432762%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F679950%22%20target%3D%22_blank%22%3E%40PrashantM2495%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELots%20of%20the%20common%20ones%20are%20shown%20in%20the%20docs%20for%20Windows%20and%20Linux%2C%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fdata-sources-performance-counters%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-monitor%2Fplatform%2Fdata-sources-performance-counters%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20don't%20remember%20a%20perf%20counter%20for%20physical%20CPUs%2C%20I%20think%20we%20can%20work%20it%20out%20-%20I'll%20look%20for%20an%20example%20later%20(I'm%20sure%20I%20have%20one).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1432786%22%20slang%3D%22en-US%22%3ERe%3A%20Log%20Analytics%20metrics%20for%20Memory%20%26amp%3B%20CPU%20Load%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1432786%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-cpp%22%3E%3CCODE%3EPerf%0A%7C%20where%20ObjectName%20%3D%3D%20%22Processor%22%0A%7C%20where%20CounterName%20%3D%3D%20%22%25%20Processor%20Time%22%20and%20InstanceName%20!%3D%22_Total%22%0A%7C%20summarize%20dcount(InstanceName)%2C%20make_set(InstanceName)%20by%20Computer%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1432951%22%20slang%3D%22en-US%22%3ERe%3A%20Log%20Analytics%20metrics%20for%20Memory%20%26amp%3B%20CPU%20Load%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1432951%22%20slang%3D%22en-US%22%3EHi%20Clive%2C%3CBR%20%2F%3EThanks%20a%20lot%20for%20sharing%20web%20link%20for%20performance%20counters.%20I%20can%20see%20most%20of%20them%20are%20for%20Azure%20Linux.%3CBR%20%2F%3E%3CBR%20%2F%3EIs%20it%20possible%20to%20get%20similar%20one%20for%20Windows%20VMs%3F%3C%2FLINGO-BODY%3E
Occasional Contributor

How to find equivalent metrics/counter in Azure Log Analytics for below

Azure Metrics

Windows VM

Linux VM

Physical memory

 

 

Pagefile

 

 

Virtual memory usage

 

 

Physical memory usage

 

 

Number of physical CPUs

 

 

Number of Logical CPUs

 

 

Processor queue length 

 

 

 

3 Replies

@PrashantM2495 

 

Lots of the common ones are shown in the docs for Windows and Linux,

https://docs.microsoft.com/en-us/azure/azure-monitor/platform/data-sources-performance-counters

 

I don't remember a perf counter for physical CPUs, I think we can work it out - I'll look for an example later (I'm sure I have one).

 

Perf
| where ObjectName == "Processor"
| where CounterName == "% Processor Time" and InstanceName !="_Total"
| summarize dcount(InstanceName), make_set(InstanceName) by Computer

 

 

Hi Clive,
Thanks a lot for sharing web link for performance counters. I can see most of them are for Azure Linux.

Is it possible to get similar one for Windows VMs?