Best practice of log query to monitor the health of VMs

%3CLINGO-SUB%20id%3D%22lingo-sub-3056593%22%20slang%3D%22en-US%22%3EBest%20practice%20of%20log%20query%20to%20monitor%20the%20health%20of%20VMs%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-3056593%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3EIs%20there%20a%20best%20practice%20or%20sample%20log%20query%20of%20log%20analytics%20to%20monitor%20the%20health%2Fperformance%20of%20virtual%20machines%3F%20I%20know%20there%20are%20many%20articles%20on%20how%20to%20create%20or%20use%20existing%20log%20queries%20but%20I'm%20looking%20for%20a%20ready%20log%20queries%20to%20monitor%20the%20health%20of%20Azure%20VMs%20(like%20in%20metrics%20we%20have%20the%20default%20metrics%20of%20CPU%2C%20Disk%2C%20Memory%2C%20Network%20with%20their%20recommended%20threshold).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20advice%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3CP%3EBachar%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-3056593%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EQuery%20Language%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Occasional Contributor

Hello,

Is there a best practice or sample log query of log analytics to monitor the health/performance of virtual machines? I know there are many articles on how to create or use existing log queries but I'm looking for a ready log queries to monitor the health of Azure VMs (like in metrics we have the default metrics of CPU, Disk, Memory, Network with their recommended threshold).

 

Any advice ?

 

Thanks,

Bachar

2 Replies
The challenge with this is normally the "recommended threshold" part. No two computers are the same, so for one it maybe ok to use 90% CPU - for the next just 10%

@Clive_Watson thank you for your reply and you are right about the threshold. But my question was more about the best way to monitor/alert the health of Azure VMs. for example, I can monitor the VMs using platform metrics or guest metrics using diagnostic logs. Or send the OS metrics to log analytics workspace and use the log query or metrics ( in case of individual VM). Also I could enable VM insights and use its default health monitoring and alerts ... so many options. I'm wondering which once I should use ?