Jump to content













Photo
- - - - -

Azure Log Analytics | CPU Performance Monitor

  Posted by Pantelis Apostolidis , 26 June 2017 · 37 views

<h1>Azure Log Analytics | CPU Performance Monitor</h1>
<p>In this article we will create a CPU Performance monitor View for our servers at the Azure Log Analytics (OMS) Portal.</p>
<p id="YIOVkis"><img class="alignnone wp-image-1310 size-full" src="http://www.e-apostol...16c5d695bd.png"alt="OMS Portal" width="436" height="201" srcset="http://www.e-apostolidis.gr/wp-content/uploads/2017/06/img_59516c5d695bd.png 436w, http://www.e-apostol...5bd-300x138.png 300w" sizes="(max-width: 436px) 100vw, 436px" /></p>
<p>At the Microsoft Operations Management Suite (OMS) portal press the + button to create a new View</p>
<p id="LhdpIpQ"><img class="alignnone wp-image-1309 size-full" src="http://www.e-apostol...16b7282514.png"alt="Add Custom View" width="351" height="133" srcset="http://www.e-apostolidis.gr/wp-content/uploads/2017/06/img_59516b7282514.png 351w, http://www.e-apostol...514-300x114.png 300w" sizes="(max-width: 351px) 100vw, 351px" /></p>
<p>The View Designer workspace will open. Select the “Line chart &amp; callout”</p>
<p id="bgLUzEK"><img class="alignnone wp-image-1312" src="http://www.e-apostol...16ce1844a4.png"alt="Line chard &amp; callout" width="505" height="339" srcset="http://www.e-apostolidis.gr/wp-content/uploads/2017/06/img_59516ce1844a4.png 591w, http://www.e-apostol...4a4-300x202.png 300w" sizes="(max-width: 505px) 100vw, 505px" /></p>
<p>At the Properties blade enter a Name, something like “CPU Performance Monitor”, add the below query and press Apply</p>
<p><pre class="crayon-plain-tag">Type:Perf CounterName=&quot;% Processor Time&quot; InstanceName=&quot;_Total&quot; | measure avg(CounterValue) by Computer Interval 10Minutes</pre></p>
<p id="eQFJhAB"><img class="alignnone wp-image-1313 size-full" src="http://www.e-apostol...16d20f0a98.png"alt="Properties" width="341" height="355" srcset="http://www.e-apostolidis.gr/wp-content/uploads/2017/06/img_59516d20f0a98.png 341w, http://www.e-apostol...a98-288x300.png 288w" sizes="(max-width: 341px) 100vw, 341px" /></p>
<p>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.</p>
<p id="AAvzNSU"><img class="alignnone wp-image-1314" src="http://www.e-apostol...16dd2e769e.png"alt="CPU Performance Monitor" width="587" height="281" srcset="http://www.e-apostolidis.gr/wp-content/uploads/2017/06/img_59516dd2e769e.png 604w, http://www.e-apostol...69e-300x144.png 300w, http://www.e-apostol...69e-600x287.png 600w" sizes="(max-width: 587px) 100vw, 587px" /></p>
<p>The next step is to press the “+ View” tab and add a “Stack of line charts</p>
<p id="ODFXyoY"><img class="alignnone wp-image-1316 size-full" src="http://www.e-apostol...16e888fd73.png"alt="add View" width="223" height="635" srcset="http://www.e-apostolidis.gr/wp-content/uploads/2017/06/img_59516e888fd73.png 223w, http://www.e-apostol...d73-105x300.png 105w" sizes="(max-width: 223px) 100vw, 223px" /></p>
<p>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:</p>
<p id="KvyRjRK"><img class="alignnone wp-image-1318 size-full" src="http://www.e-apostol...17007d64e4.png"alt="CPU Performance monitor" width="508" height="535" srcset="http://www.e-apostolidis.gr/wp-content/uploads/2017/06/img_59517007d64e4.png 508w, http://www.e-apostol...4e4-285x300.png 285w" sizes="(max-width: 508px) 100vw, 508px" /></p>
<p>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”.</p>
<p>The query is the below, just change the Computer = “server.domain.local” with your servers.</p>
<p><pre class="crayon-plain-tag">Type:Perf CounterName=&quot;% Processor Time&quot; InstanceName=&quot;_Total&quot; AND Computer = &quot;server.domain.local&quot; | measure Avg(CounterValue) as 'CPU_Percentage' by Computer Interval 10Minutes</pre></p>
<p id="atvhQLd"><img class="alignnone wp-image-1319 size-full" src="http://www.e-apostol...1703d83d36.png"alt="Properties" width="339" height="831" srcset="http://www.e-apostolidis.gr/wp-content/uploads/2017/06/img_5951703d83d36.png 339w, http://www.e-apostol...d36-122x300.png 122w" sizes="(max-width: 339px) 100vw, 339px" /></p>
<p>Finally press “Save” at the View Designer</p>
<p id="HvWmEHR"><img class="alignnone wp-image-1320 size-full" src="http://www.e-apostol...17087c3dce.png"alt="Save" width="255" height="102" /></p>
<p>The result is a CPU Performance monitor for all servers at the OMS Portal.</p>
<p id="NgkfEKg"><img class="alignnone wp-image-1322 size-full" src="http://www.e-apostol...170f7e8a8a.png"alt="CPU Performance Monitor" width="352" height="200" srcset="http://www.e-apostolidis.gr/wp-content/uploads/2017/06/img_595170f7e8a8a.png 352w, http://www.e-apostol...a8a-300x170.png 300w" sizes="(max-width: 352px) 100vw, 352px" /></p>
<p>And when you press it you have the CPU Performance Monitor of all added servers.</p>
<p id="fhEsbKE"><img class="alignnone wp-image-1323 size-full" src="http://www.e-apostol...171faee1ac.png"alt="Custom View" width="1069" height="690" srcset="http://www.e-apostolidis.gr/wp-content/uploads/2017/06/img_595171faee1ac.png 1069w, http://www.e-apostol...1ac-300x194.png 300w, http://www.e-apostol...1ac-768x496.png 768w, http://www.e-apostol...ac-1024x661.png 1024w, http://www.e-apostol...1ac-600x387.png 600w, http://www.e-apostol...1ac-660x426.png 660w" sizes="(max-width: 1069px) 100vw, 1069px" /></p>
<p>&nbsp;</p>
<p>Stay tuned for the next part</p>
<p><a class="a2a_button_email" href="https://www.addtoany...rmance Monitor"title="Email" rel="nofollow" target="_blank"></a><a class="a2a_button_print" href="https://www.addtoany.com/add_to/print?linkurl=http%3A%2F%2Fwww.e-apostolidis.gr%2Fmicrosoft%2Fazure%2Fazure-log-analytics-cpu-performance-monitor%2F&amp;linkname=Azure%20Log%20Analytics%20%7C%20CPU%20Performance%20Monitor" title="Print" rel="nofollow" target="_blank"></a><a class="a2a_dd addtoany_share_save" href="https://www.addtoany.com/share#url=http%3A%2F%2Fwww.e-apostolidis.gr%2Fmicrosoft%2Fazure%2Fazure-log-analytics-cpu-performance-monitor%2F&amp;title=Azure%20Log%20Analytics%20%7C%20CPU%20Performance%20Monitor" data-a2a-url="http://www.e-apostolidis.gr/microsoft/azure/azure-log-analytics-cpu-performance-monitor/" data-a2a-title="Azure Log Analytics | CPU Performance Monitor"><img src="https://static.addtoany.com/buttons/share_save_171_16.png" alt="Share"></a></p><p>The post <a rel="nofollow" href="http://www.e-apostolidis.gr/microsoft/azure/azure-log-analytics-cpu-performance-monitor/">Azure Log Analytics | CPU Performance Monitor</a> appeared first on <a rel="nofollow" href="http://www.e-apostolidis.gr">Apostolidis IT Corner</a>.</p>


<a href="http://www.e-apostol...mance-monitor/"class='bbc_url' rel='nofollow external'>Source</a>