Monitor apps - Azure App Service (2024)

  • Article

Azure App Service providesbuilt-in monitoring functionality for web apps, mobile, and API apps in the Azure portal.

In the Azure portal, you can review quotas and metrics for an app and App Service plan, and set up alerts and autoscaling rules based metrics.

Understand quotas

Apps that are hosted in App Service are subject to certain limits on the resources they can use. The limits are defined by the App Service plan that's associated with the app.

Note

App Service Free and Shared (preview) service plans are base tiers that run on the same Azure virtual machines as other App Service apps. Some apps might belong to other customers. These tiers are intended to be used only for development and testing purposes.

If the app is hosted in a Free or Shared plan, the limitson the resources that the app can use are defined by quotas.

If the app is hosted in a Basic, Standard, or Premium plan, the limits on the resources that they can use are set by the size (Small, Medium, Large) and instance count (1, 2, 3, and so on) of the App Service plan.

Quotas for Free or Shared apps are:

QuotaDescription
CPU (Short)The amount of CPU allowed for this app in a 5-minute interval. This quota resets every five minutes.
CPU (Day)The total amount of CPU allowed for this app in a day. This quota resets every 24 hours at midnight UTC.
MemoryThe total amount of memory allowed for this app.
BandwidthThe total amount of outgoing bandwidth allowed for this app in a day. This quota resets every 24 hours at midnight UTC.
FilesystemThe total amount of storage allowed.

The only quota applicable to apps that are hosted in Basic, Standard, andPremium is Filesystem.

For more information about the specific quotas, limits, and features available to the various App Service SKUs, see Azure Subscription service limits.

Quota enforcement

If an app exceeds the CPU (short), CPU (Day), or bandwidth quota, the app is stopped until the quota resets. During this time, all incoming requests result in an HTTP 403 error.

Monitor apps - Azure App Service (1)

If the app Memory quota is exceeded, the app is stopped temporarily.

If the Filesystem quota is exceeded, any write operation fails. Write operation failures include any writes to logs.

You can increase or remove quotas from your app by upgrading your App Service plan.

Understand metrics

Important

Average Response Time will be deprecated to avoid confusion with metric aggregations. Use Response Time as a replacement.

Note

Metrics for an app include the requests to the app's SCM site(Kudu). This includes requests to view the site's logstream using Kudu. Logstream requests may span several minutes, which will affect the Request Time metrics. Users should be aware of this relationship when using these metrics with autoscale logic.

Http Server Errors only records requests that reach the backend service (the worker(s) hosting the app). If the requests are failing at the FrontEnd, they are not recorded as Http Server Errors. The Health Check feature / Application Insights availability tests can be used for outside in monitoring.

Metrics provide information about the app or the App Service plan's behavior.

For an app, the available metrics are:

MetricDescription
Response TimeThe time taken for the app to serve requests, in seconds.
Average Response Time (deprecated)The average time taken for the app to serve requests, in seconds.
Average memory working setThe average amount of memory used by the app, in megabytes (MiB).
ConnectionsThe number of bound sockets existing in the sandbox (w3wp.exe and its child processes). A bound socket is created by calling bind()/connect() APIs and remains until said socket is closed with CloseHandle()/closesocket().
CPU TimeThe amount of CPU consumed by the app, in seconds. For more information about this metric, see CPU time vs CPU percentage.
Current AssembliesThe current number of Assemblies loaded across all AppDomains in this application.
Data InThe amount of incoming bandwidth consumed by the app, in MiB.
Data OutThe amount of outgoing bandwidth consumed by the app, in MiB.
File System UsageThe amount of usage in bytes by storage share.
Gen 0 Garbage CollectionsThe number of times the generation 0 objects are garbage collected since the start of the app process. Higher generation GCs include all lower generation GCs.
Gen 1 Garbage CollectionsThe number of times the generation 1 objects are garbage collected since the start of the app process. Higher generation GCs include all lower generation GCs.
Gen 2 Garbage CollectionsThe number of times the generation 2 objects are garbage collected since the start of the app process.
Handle CountThe total number of handles currently open by the app process.
Health Check StatusThe average health status across the application's instances in the App Service Plan.
Http 2xxThe count of requests resulting in an HTTP status code ≥ 200 but < 300.
Http 3xxThe count of requests resulting in an HTTP status code ≥ 300 but < 400.
Http 401The count of requests resulting in HTTP 401 status code.
Http 403The count of requests resulting in HTTP 403 status code.
Http 404The count of requests resulting in HTTP 404 status code.
Http 406The count of requests resulting in HTTP 406 status code.
Http 4xxThe count of requests resulting in an HTTP status code ≥ 400 but < 500.
Http Server ErrorsThe count of requests resulting in an HTTP status code ≥ 500 but < 600.
IO Other Bytes Per SecondThe rate at which the app process is issuing bytes to I/O operations that don't involve data, such as control operations.
IO Other Operations Per SecondThe rate at which the app process is issuing I/O operations that aren't read or write operations.
IO Read Bytes Per SecondThe rate at which the app process is reading bytes from I/O operations.
IO Read Operations Per SecondThe rate at which the app process is issuing read I/O operations.
IO Write Bytes Per SecondThe rate at which the app process is writing bytes to I/O operations.
IO Write Operations Per SecondThe rate at which the app process is issuing write I/O operations.
Memory working setThe current amount of memory used by the app, in MiB.
Private BytesPrivate Bytes is the current size, in bytes, of memory that the app process has allocated that can't be shared with other processes.
RequestsThe total number of requests regardless of their resulting HTTP status code.
Requests In Application QueueThe number of requests in the application request queue.
Thread CountThe number of threads currently active in the app process.
Total App DomainsThe current number of AppDomains loaded in this application.
Total App Domains UnloadedThe total number of AppDomains unloaded since the start of the application.

For an App Service plan, the available metrics are:

Note

App Service plan metrics are available only for plans in Basic, Standard, and Premium tiers.

MetricDescription
CPU PercentageThe average CPU used across all instances of the plan.
Memory PercentageThe average memory used across all instances of the plan.
Data InThe average incoming bandwidth used across all instances of the plan.
Data OutThe average outgoing bandwidth used across all instances of the plan.
Disk Queue LengthThe average number of both read and write requests that were queued on storage. A high disk queue length is an indication of an app that might be slowing down because of excessive disk I/O.
Http Queue LengthThe average number of HTTP requests that had to sit on the queue before being fulfilled. A high or increasing HTTP Queue length is a symptom of a plan under heavy load.

CPU time vs CPU percentage

There are two metrics that reflect CPU usage:

CPU Time: Useful for apps hosted in Free or Shared plans, because one of their quotas is defined in CPU minutes used by the app.

CPU percentage: Useful for apps hosted in Basic, Standard, and Premium plans, because they can be scaled out. CPU percentage is a good indication of the overall usage across all instances.

Metrics granularity and retention policy

Metrics for an app and app service plan are logged and aggregated by the service and retained according to these rules.

Monitoring quotas and metrics in the Azure portal

To review the status of the various quotas and metrics that affect an app, go to the Azure portal.

Monitor apps - Azure App Service (2)

To find quotas, select Settings > Quotas. On the chart, you can review:

  1. The quota name.
  2. Its reset interval.
  3. Its current limit.
  4. Its current value.

Monitor apps - Azure App Service (3)You can access metrics directly from the resource Overview page. Here you'll see charts representing some of the apps metrics.

Clicking on any of those charts will take you to the metrics view where you can create custom charts, query different metrics and much more.

To learn more about metrics, see Monitor service metrics.

Alerts and autoscale

Metrics for an app or an App Service plan can be hooked up to alerts. For more information, see Receive alert notifications.

App Service apps hosted in Basic or higher App Service plans support autoscale. With autoscale, you can configure rules that monitor the App Service plan metrics. Rules can increase or decrease the instance count, which can provide additional resources as needed. Rules can also help you save money when the app is over-provisioned.

For more information about autoscale, see How to scale and Best practices for Azure Monitor autoscaling.

As an expert in Azure App Service and monitoring functionality, I have hands-on experience and a deep understanding of the concepts involved. Let me break down the key points mentioned in the provided article:

Azure App Service Overview:

  • Functionality: Azure App Service provides built-in monitoring functionality for web apps, mobile apps, and API apps in the Azure portal.

Quotas and App Service Plans:

  • Quota Definitions: Apps hosted in App Service have limits on resources defined by the associated App Service plan.
  • Service Plans: Free and Shared plans are intended for development and testing. Basic, Standard, and Premium plans have size and instance count-based limits.
  • Quotas for Free or Shared Apps:
    • CPU (Short): Allowed CPU usage in a 5-minute interval.
    • CPU (Day): Total CPU allowed in a day.
    • Memory: Total allowed memory.
    • Bandwidth: Outgoing bandwidth allowed in a day.
    • Filesystem: Total storage allowed.

Quota Enforcement:

  • Actions: If an app exceeds quotas, various actions are taken, including app stoppage or temporary suspension of specific functionalities.
  • Upgrade Option: Quotas can be increased or removed by upgrading the App Service plan.

Metrics:

  • Deprecated Metric: Average Response Time is deprecated, and Response Time is recommended as a replacement.
  • App Metrics: Various metrics are available for app monitoring, such as Response Time, Average Memory Working Set, Connections, CPU Time, and more.
  • App Service Plan Metrics: Metrics for App Service plans include CPU Percentage, Memory Percentage, Data In/Out, Disk Queue Length, and HTTP Queue Length.

Metric Granularity and Retention Policy:

  • Logging and Aggregation: Metrics for apps and App Service plans are logged, aggregated, and retained based on specific rules.

Monitoring in Azure Portal:

  • Quota Review: Quotas and metrics can be reviewed in the Azure portal under Settings > Quotas.
  • Metrics Access: Metrics can be accessed directly from the resource Overview page, allowing users to create custom charts and query different metrics.

Alerts and Autoscaling:

  • Alerts: Metrics can be configured to trigger alerts for proactive monitoring.
  • Autoscale: Basic and higher App Service plans support autoscale, allowing for dynamic resource adjustments based on configured rules.

In summary, Azure App Service offers a comprehensive monitoring solution with detailed quotas, metrics, and the ability to set up alerts and autoscaling rules for efficient resource management.

Monitor apps - Azure App Service (2024)

FAQs

What is the monitoring tools using to monitor the application in Azure? ›

Azure Monitor is a comprehensive monitoring solution for collecting, analyzing, and responding to monitoring data from your cloud and on-premises environments. You can use Azure Monitor to maximize the availability and performance of your applications and services.

Which of the following application monitoring tool can monitor an already deployed Azure Web App without redeploying it? ›

Install the Status Monitor on your existing Azure App Services and virtual machines through the Azure portal to get performance monitoring without needing to update and redeploy your application. Visual Studio Application Insights is an extensible analytics service that monitors your live web application.

What is the difference between Azure application insights and monitor? ›

In summary, Azure Application Insights focuses on monitoring the performance and user behavior of applications, while Azure Monitor provides a broader scope of monitoring for applications, infrastructure, and operating systems.

What is an example of a monitoring tool? ›

Middleware. Middleware is a full-stack, cloud-native observability platform that supports IT monitoring because of its infrastructure monitoring capabilities. The tool helps identify issues and track down the root causes behind them across the entire IT infrastructure with traces, logs and more.

What is the difference between Azure monitor and Azure monitor logs? ›

In conclusion, Azure Monitor and Log Analytics collectively offer a robust solution for monitoring Azure resources. While Azure Monitor provides a lot of features including aggregation of logs, real-time insights and performance metrics, Log Analytics allows advanced query capabilities and extensive log data analysis.

Which two data types should you use Azure monitor? ›

Explanation: Azure Monitor provides two primary data types for monitoring and analysis: Metrics and Logs. Metrics provide a numerical view of performance data, while Logs provide a detailed record of events and activities.

Can we monitor non Azure resources using Microsoft Azure monitoring solution? ›

No. Azure Monitor is a scalable cloud service that processes and stores large amounts of data, although Azure Monitor can monitor resources that are on-premises and in other clouds.

Is Azure Monitor a PaaS or SAAS? ›

You can use Azure Monitor but it requires a lot of manual configuration to setup the PaaS metrics, thresholds and alerts. Alternatively, you can use an Azure monitoring tool like eG Enterprise which monitors Azure PaaS services but requires very little manual set up.

How do I view Azure Monitor logs? ›

To view activity log insights at the resource group or subscription level: In the Azure portal, select Monitor > Workbooks. In the Insights section, select Activity Logs Insights.

How long are Azure Monitor activity logs kept? ›

Activity log events are retained in the Azure platform for 90 days.

What are the three kinds of app service in Azure? ›

Types of Azure App Services
  • Web Apps.
  • API Apps.
  • Logic Apps.
  • Mobile Apps.
  • Function Apps.
Jun 18, 2024

What is the difference between Azure App Service and Azure App Service plan? ›

For further details, refer to Unique Default Hostname for App Service Resource. An app service always runs in an App Service plan. In addition, Azure Functions also has the option of running in an App Service plan. An App Service plan defines a set of compute resources for a web app to run.

What is the difference between app service and service principal in Azure? ›

You can think of Application object as a globally unique template/blueprint/definition that represents an application whereas the Application service principal object is a concrete representation of the application for purposes of consent being given to it, permissions to access resources being granted to it, etc., in ...

What is the tool used for application monitoring? ›

AppDynamics

This monitoring tool is useful for businesses with several applications that rely solely on cloud-based technology. They provide solutions across cloud monitoring, specific cloud service provider monitoring, cloud migration and continuous delivery.

How do I monitor application logs in Azure? ›

To enable application logging for Windows apps in the Azure portal, navigate to your app and select App Service logs. Select On for either Application Logging (Filesystem) or Application Logging (Blob), or both. The Filesystem option is for temporary debugging purposes, and turns itself off in 12 hours.

Which tool is using for monitoring the process? ›

Process Monitor is an advanced monitoring tool for Windows that shows real-time file system, Registry and process/thread activity.

What is similar to CloudWatch in Azure? ›

Azure Monitor is a native monitoring tool within the Microsoft Azure cloud platform, similar to CloudWatch in AWS. And, like CloudWatch, Azure Monitor provides monitoring for AWS and other custom data sources, on-premises data centers, and across many Azure services by default.

Top Articles
United States Stock Market Index - Quote - Chart - Historical Data
The Dow was perfectly unchanged on Tuesday, a rare occasion on Wall Street
Maxtrack Live
Katie Nickolaou Leaving
123 Movies Black Adam
25X11X10 Atv Tires Tractor Supply
How Far Is Chattanooga From Here
10000 Divided By 5
City Of Spokane Code Enforcement
Aita Autism
C-Date im Test 2023 – Kosten, Erfahrungen & Funktionsweise
What Happened To Maxwell Laughlin
Hood County Buy Sell And Trade
Cbs Trade Value Chart Fantasy Football
The Banshees Of Inisherin Showtimes Near Regal Thornton Place
How to find cash from balance sheet?
Dr. med. Uta Krieg-Oehme - Lesen Sie Erfahrungsberichte und vereinbaren Sie einen Termin
Cinebarre Drink Menu
Simpsons Tapped Out Road To Riches
Willam Belli's Husband
Edicts Of The Prime Designate
Wausau Marketplace
Jeff Now Phone Number
Melendez Imports Menu
Avatar: The Way Of Water Showtimes Near Maya Pittsburg Cinemas
Used Patio Furniture - Craigslist
The Boogeyman (Film, 2023) - MovieMeter.nl
Best Middle Schools In Queens Ny
Busted Mugshots Paducah Ky
Marilyn Seipt Obituary
Generator Supercenter Heartland
897 W Valley Blvd
Mia Malkova Bio, Net Worth, Age & More - Magzica
Gus Floribama Shore Drugs
Math Minor Umn
Tmj4 Weather Milwaukee
Teenage Jobs Hiring Immediately
RUB MASSAGE AUSTIN
Samsung 9C8
The Minneapolis Journal from Minneapolis, Minnesota
Is The Nun Based On a True Story?
Omaha Steaks Lava Cake Microwave Instructions
Henry Ford’s Greatest Achievements and Inventions - World History Edu
Simnet Jwu
Discover Things To Do In Lubbock
'Guys, you're just gonna have to deal with it': Ja Rule on women dominating modern rap, the lyrics he's 'ashamed' of, Ashanti, and his long-awaited comeback
SF bay area cars & trucks "chevrolet 50" - craigslist
Nami Op.gg
Brown launches digital hub to expand community, career exploration for students, alumni
Reilly Auto Parts Store Hours
Motorcycle For Sale In Deep East Texas By Owner
Karen Kripas Obituary
Latest Posts
Article information

Author: Otha Schamberger

Last Updated:

Views: 6139

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Otha Schamberger

Birthday: 1999-08-15

Address: Suite 490 606 Hammes Ferry, Carterhaven, IL 62290

Phone: +8557035444877

Job: Forward IT Agent

Hobby: Fishing, Flying, Jewelry making, Digital arts, Sand art, Parkour, tabletop games

Introduction: My name is Otha Schamberger, I am a vast, good, healthy, cheerful, energetic, gorgeous, magnificent person who loves writing and wants to share my knowledge and understanding with you.