TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

Azure App Service Monitoring

Azure App Service Monitoring with What is Microsoft Azure, Cloud Computing, Storage Service, Storage Service, Storage Account, Blob Storage, Storage Security, File Storage, Disk Storage, Network Service etc.

<< Back to AZURE

Azure App Service Monitoring

Microsoft provides different features to monitor our App service.

Quotas

Application hosted in App Service is subject to certain limits on the resources they can use. The boundaries are defined by the App Service plan associated with the app. When we create an app service plan, we generally select a pricing tier and also size. Based on the size and pricing tier, we'll be allocated with a certain amount of CPU and a certain amount of memory. Quotas for Free or Shared apps are as follows.

  • CPU(Short)
  • CPU(Day)
  • Memory
  • Bandwidth
  • Filesystem- Applicable for Basic, Standard, and Premium plans

The only quota applicable to apps hosted on Basic, Standard, and Premium plans is Filesystem, based on the number of App service plans that we have created in our subscription.

Metrics

Metrics provide information about the app or App Service plan's behaviour. So Metrics are provided at two levels.

Azure App Service Monitoring
  • One is at the App service plan level, which will include CPU and Memory percentage, Data in and out, Disc queue length, and HTTP queue length.
  • The second level of metrics provided at an application level, which includes average response time, average memory working set, CPU time, Data in and out, etc. All of these metrics are essential. There are a lot more metrics available when we go for application insight, which is an advanced monitoring tool using which we can monitor web apps.

Granularity and retention

  • Minute granularity: These metrics are retained for 30 hours.
  • Hour granularity: These metrics are retained for 30 days.
  • Day granularity: These metrics are retained for 30 days.

However, if we use the application insights, then this retention will increase drastically.

Diagnostics

App service web apps provide diagnostic functionality for logging information from both the web server and the web application. These are logically separated into web server diagnostics and application diagnostics.

Azure App Service Monitoring

Web server Diagnostics: In this, we can have a detailed error logging, which is any Http 400, and the above error will get logged. We can also view the logs. And the second thing is failed request tracking, which basically contains the trace of IIS components that are used to process our request. And the third one is web server logging. These are the overall metrics on how many Http requests we received, and from a particular IP address.

Application Diagnostics: It allows us to capture the information produced by the web application. So if we're using system diagnostic trace, all the information will be provided by application diagnostics.

Diagnostic information can be stored in file system or Azure storage.

Stream logs

During the development of an application, it is often useful to see logging information in near-real-time. We can steam logging information to our development environment using either Azure PowerShell or the azure Command-line interface.

Azure App Service Monitoring

These are the basic commands that we need to use to stream the log files.

  • Streaming with Azure PowerShell
    • Get-AzureWebSiteLog - Name webappname -Tail
    • Get-AzureWebSitelog - Name webappname -Tail -Message Error
  • Streaming with Azure Command-Line Interface
    • az webapp log tail - name webappname -resource-group myResourceGroup
    • az webapp log tail -name webappname -resource-group myResourceGroup -filter Error





Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf