← Back to Articles         
 Monitor Metrics in Azure App Service

Monitor Metrics in Azure App Service

Published on 20 Oct 2026     5 min read Microsoft AZURE
Metrics in Azure App Service

How to Configure and Monitor Metrics in Azure App Service — Step-by-Step

Azure App Service automatically collects platform metrics such as CPU Time, Memory Working Set, Requests, HTTP 5xx Errors, and Average Response Time.

You don't need to install any monitoring agent to view these basic metrics.

In this practical exercise, we'll learn how to:

  1. View App Service metrics in Azure Portal.

  2. Configure Aggregation (Average, Maximum, Total).

  3. Configure Time Granularity (1 minute, 5 minutes, etc.).

  4. Apply Dimensions using filters and splitting.

  5. Create a dashboard chart.

  6. Configure a metric alert.

Step 1: Open Your Azure App Service

Fix HTTP 502 and HTTP 503 Errors - Azure App Service | Microsoft Learn
 
 
 
  1. Sign in to Azure Portal.

  2. Search for App Services.

  3. Select your existing App Service.

  4. Open the App Service Overview page.

For example, assume your App Service is named my-portfolio-app.

Step 2: Open Metrics

From your App Service:

  1. In the left navigation menu, locate Monitoring.

  2. Click Metrics.

  3. Azure Metrics Explorer will open.

  4. Your App Service should be selected as the scope.

Menu labels may vary slightly depending on the Azure Portal experience.

Step 3: Select a Metric

In Metrics Explorer, configure:

Setting

Select

Scope

Your App Service

Metric Namespace

App Service standard metrics

Metric

Requests

Aggregation

Sum

Time Range

Last 30 minutes

Time Granularity

1 minute

This displays how many HTTP requests your App Service received in each one-minute interval.

Example: If 100 requests arrive in one minute, the chart shows 100 requests for that interval.

Step 4: Configure Aggregation

Select the Requests metric and change the aggregation.

Aggregation

Result

Sum (Total)

Total requests during each interval

Average

Average of recorded values, where supported

Maximum

Highest recorded value, where supported

For the Requests metric, Sum (Total) is the appropriate aggregation.

For response-time monitoring, select Response Time and use Average.

Step 5: Configure Time Granularity

At the top of Metrics Explorer:

  1. Click the time range selector.

  2. Choose Last 30 minutes.

  3. Set Time Granularity = 5 minutes.

  4. Click Apply.

For example, suppose your App Service receives these requests:

Time Interval

Requests

10:00–10:05

100

10:05–10:10

200

10:10–10:15

150

10:15–10:20

300

Chart

Illustrative data, not actual Azure measurements.

 

Each point represents the total requests in a five-minute interval.

Step 6: Configure Dimensions

Azure App Service standard metrics commonly support the Instance dimension. This allows you to monitor individual App Service instances when your application is scaled out.

  1. In Metrics Explorer, select Requests.

  2. Click Apply splitting.

  3. Choose the Instance dimension.

  4. Select the available instance values.

  5. Apply the selection.

For example, if your App Service runs on two instances:

Instance

Requests

Instance 1

600

Instance 2

400

The chart will display separate series for each instance.

Important: If your App Service has only one instance, you'll see only one series. App Service standard metrics generally do not provide HTTP status code as a dimension. For status-code analysis, use the separate HTTP 4xx/5xx metrics or Application Insights request metrics, which support a Result code dimension.

Microsoft Learn
+1

 

Step 7: Monitor Multiple Metrics

Click New chart and add the following metrics.

Metric

Recommended Aggregation

Purpose

Requests

Sum

Monitor incoming traffic

Response Time

Average

Monitor application response time

Http 5xx

Sum

Identify server errors

Memory Working Set

Average

Monitor application memory usage

CPU Time

Sum

Monitor CPU processing time

For CPU utilization percentage across the hosting infrastructure, check the App Service Plan → Metrics → CPU Percentage, where supported.

Microsoft Learn
+1

Step 8: Pin the Chart to an Azure Dashboard

  1. Configure the chart in Metrics Explorer.

  2. Select Pin to dashboard.

  3. Choose an existing dashboard or create a new one.

  4. Open Dashboard in Azure Portal to view the saved chart.

This is useful for monitoring multiple App Services from a single dashboard.

Step 9: Create a Metric Alert

Let's configure an alert when your App Service generates more than 10 HTTP 500-level errors within 5 minutes.

  1. Open your App Service.

  2. Select Monitoring → Alerts.

  3. Click Create → Alert rule.

  4. Under Condition, choose Http 5xx or Http Server Errors.

  5. Configure the condition:

Setting

Value

Signal

Http 5xx

Aggregation

Total

Operator

Greater than

Threshold

10

Check every

1 minute

Lookback period

5 minutes

  1. Under Actions, create or select an Action Group.

  2. Configure an email notification.

  3. Under Details, provide the alert name AppService-HTTP500-Alert.

  4. Select Review + create.

Azure Monitor will evaluate the metric and trigger the alert when the configured condition is met. Alerts can incur additional charges.

Microsoft Learn
+1

 

Step 10: Test the Metrics

You can test request monitoring using your App Service's URL.

  1. Open https://your-app-name.azurewebsites.net.

  2. Refresh the page several times.

  3. Navigate to different application pages.

  4. Return to Metrics Explorer.

  5. Select Requests → Sum → 1-minute granularity.

  6. Observe the request count.

Metrics may take a few minutes to appear. Background traffic, health checks, and other requests can also contribute to the count.

Final Practical Exercise

Azure App Service Metrics Lab

0 of 6 completed

 

Official Microsoft documentation: Analyze metrics for an Azure resource.

Next recommended exercise: Configure Application Insights for your ASP.NET Core Web API to monitor individual endpoints, SQL dependencies, failed requests, and application response times.

← Back to Articles