mikebai.com

  • Home
  • dev
  • DotNET
  • M365
  • 搞笑
  • 杂七杂八
  • FocusDict
個人BLOG
it developer
  1. Main page
  2. M365
  3. Main content

Monitor a process with Azure Monitor

2020-11-23 127hotness 0likes 0comments

add Windows Performance Counters




Process(*)\ID Process  


 




Perf


| where ObjectName == "Process" 


 and CounterName == "ID Process"


 // | where CounterName contains "Processor Time" 


 | where Computer == "pc-vm-websrv1"


 // | where  Computer == "pc-vm-logicsrv2"


 // | where  Computer == "pc-vm-dbsrv3"


 // | distinct  InstanceName


 | where InstanceName == "fdm" or InstanceName =="sakura"  or InstanceName =="7zFM"      


 | summarize arg_max(TimeGenerated, *) by Computer, InstanceName 


 | project TimeGenerated, Computer, ProcessName = InstanceName


 | order by TimeGenerated desc 

A common question when working with Azure Monitor is monitoring of Windows services and processes running on Windows servers. In Azure Monitor we can monitor Windows Services and other processes the same way; by looking at process ID as a performance counter.

Even if a process can be monitored by looking at events, it is not always a reliable source. The challenge is that there is no “active monitoring” checking if the process is running at the moment when looking at only events. 

Each process writes a number of performance counters. None of these are collected by default in Azure Monitor, but easy to add under Windows Performance Counters.

Tag: Nothing
Last updated:2020-11-23

mikebai

This person is a lazy dog and has left nothing

Like
< Last article
Next article >

COPYRIGHT © 2025 mikebai.com. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang