Monitoring Azure Web Application-Part II

Posted: October 8, 2017 in Azure

On Application properties click Application insights under monitoring-Create new resources

1

Under All Resources Application insight is created, click on it

1.png

Then click Availability

3.png

We can create availability test for our application,click Add test

4.png

Select test criteria and location which will be tested

5.PNG

After 20 minutes i got first results

5-1.PNG

Getting log files

We can download log files locally:

On local machine open powerhsell as administrator (for details how to log on to azure see this post

import-module azure,azurerm
add-azureaccount
$sub=(Get-AzureRmSubscription).Name
Select-AzureSubscription -Default -SubscriptionName $sub
save-AzureWebsiteLog -Name 'moja-aplikacija' -Output 'c:\1.zip'

For real-time logging:

Get-AzureWebsiteLog -name 'moja-aplikacija' -tail</pre>

Capture.PNG

Creating Alerts

We can also create alerts for web application, from application properties click Alerts

6

Select metric

7.png

And trigger for alert

8

10

For this test i set really low treshold and after some seconds i got notification

11.PNG

Diagnostic

We can also see diagnostic and hints for improving web application performance

Under application properties click Diagnose and solve problems

12

13

14

15.PNG


		
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s