Azure Log Analytics | CPU Performance Monitor

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.

OMS Portal

At the Microsoft Operations Management Suite (OMS) portal press the + button to create a new View

Add Custom View

The View Designer workspace will open. Select the “Line chart & callout”

Line chard & 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

Properties

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.

CPU Performance Monitor

The next step is to press the “+ View” tab and add a “Stack of line charts

add View

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:

CPU Performance monitor

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 Interval 10Minutes

Properties

Finally press “Save” at the View Designer

Save

The result is a CPU Performance monitor for all servers at the OMS Portal.

CPU Performance Monitor

And when you press it you have the CPU Performance Monitor of all added servers.

Custom View

 

Stay tuned for the next part

Share

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.