Forum Discussion
jagadish .D
Feb 01, 2018Copper Contributor
OMS query for high CPU utilisation with causing application name
I am trying to build OMS log search query for High CPU utilisation with process name details. Tried and failed, due to no ideas about which values to use.
Example : The performance of the CPU is fr...
- Feb 05, 2018
Hi,
Log Analytics supports adding any windows/linux performance counters. You could potentially add performance counter for specific process to monitor its CPU Usage. You can even add any process available to monitor its cpu usage by not specifying the instance, instead you will use "*" for the instance. Needless to say that this will create a lot of usage on your Log Analytics workspace and will not be cost effective at all. Second option which requires some work on you is to implement the following workflow:
1. You have alert for high CPU usage.
2. The alert kicks a runbook when it is triggered.
3. The runbook connects to the server in question with High CPU and finds out which process is with highest CPU and how much exactly.
4. You can use the ingestion API for Log Analytics to send the data into custom log.
Additionally you can create another alert based on that custom log that contains the computer, the process and the CPU usage for it.
Hope this helps.
rockypabillore
Feb 05, 2019Brass Contributor
Is there an example already out there for this?
Feb 06, 2019
Hi,
No concrete example but the main workflow was explained. If you have some scripting skills it is not so hard to do.