All,
I have windows VMs where AMA agent is installed with DCR configuration. How do I report on specific alert on process and service ?
Another requirement is this possible to alert on affected VM with top 10 process output when alert is sent . This helps the person who is going to work on VM to know process status on machine which is consuming most memory or CPU ?
If you want to create an alert for a process, follow the steps below.
3.Run the following
Kusto Query Languagequery to checkVMprocessesKQL Query:
Result:
For creating an alert for
VM Servicefollow my SO thread, which is related to creating an alert on a specific service.Here is the
Log Analyticsquery that retrieves the top10 processesbyCPU usage. However, it's not possible to send an alert with the top 10 results directly. Instead, you can use anAzure Logic Appin conjunction withAzure Monitoralerts.KQL Query:
Output: