Azure Log Analytics | CPU Performance Monitor
In this article we will create a CPU Performance monitor View for our servers at the Azure Log Analytics (OMS) Portal.
At the Microsoft Operations Management Suite (OMS) portal press the + button to create a new View
The View Designer workspace will open. Select the “Line chart & callout”
At the Properties blade enter a Name, something like “CPU Performance Monitor”, add the below query and press Apply
Type:Perf CounterName=“% Processor Time” InstanceName=“_Total” | measure avg(CounterValue)by Computer Interval 10Minutes
Pressing Apply you will see at the Preview window the “Name” and the CPU Performance of all the Windows servers that are monitored by OMS agent.
The next step is to press the “+ View” tab and add a “Stack of line charts
The “Stack of line charts” will add three charts per row and we can use it to add our servers. We will create something like that:
So, at the Properties blade add a name and a query for each server needs to be monitored and press Apply. For more than three servers add more “Stack of line charts”.
The query is the below, just change the Computer = “server.domain.local” with your servers.
Type:Perf CounterName=“% Processor Time” InstanceName=“_Total” AND Computer =“server.domain.local” | measure Avg(CounterValue) as ‘CPU_Percentage’ by Computer Interval10Minutes
Finally press “Save” at the View Designer
The result is a CPU Performance monitor for all servers at the OMS Portal.
And when you press it you have the CPU Performance Monitor of all added servers.
Stay tuned for the next part