You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/app-service/monitor-app-service.md
+50-3Lines changed: 50 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Monitor Azure App Service
3
3
description: Learn about options in Azure App Service for monitoring resources for availability, performance, and operation.
4
4
ms.date: 04/18/2025
5
5
ms.custom: horz-monitor
6
-
ms.topic: concept-article
6
+
ms.topic: conceptual
7
7
author: msangapu-msft
8
8
ms.author: msangapu
9
9
ms.service: azure-app-service
@@ -42,9 +42,56 @@ The following table lists monitoring methods to use for different scenarios.
42
42
43
43
### Application Insights
44
44
45
-
Application Insights uses the powerful data analysis platform in Azure Monitor to provide you with deep insights into your application's operations. Application Insights monitors the availability, performance, and usage of your web applications, so you can identify and diagnose errors without waiting for a user to report them.
45
+
Application Insights is an Azure Monitor feature that helps you monitor availability, performance, and usage for your web app. For supported App Service stacks, you can enable Application Insights from the Azure portal without changing your code. If you need custom telemetry, unsupported hosting scenarios, or more control over configuration, use [manual instrumentation](/azure/azure-monitor/app/opentelemetry-overview). For more information about Application Insights, see [Application Insights overview](/azure/azure-monitor/app/app-insights-overview).
46
46
47
-
Application Insights includes connection points to various development tools and integrates with Visual Studio to support your DevOps processes. For more information, see [Application monitoring for App Service](/azure/azure-monitor/app/azure-web-apps).
47
+
> [!NOTE]
48
+
> Use a connection string to connect your app to Application Insights. For more information, see [Connection strings in Application Insights](/azure/azure-monitor/app/connection-strings).
49
+
50
+
To enable Application Insights for any supported language, open your app in the Azure portal, select **Application Insights** > **Enable**, create or select an Application Insights resource, and then select **Apply monitoring settings**. App Service restarts the app.
51
+
52
+
Don't enable App Service autoinstrumentation and code-based instrumentation for the same app. If you see duplicate telemetry or missing data, see [Troubleshoot Application Insights integration with Azure App Service](/troubleshoot/azure/azure-monitor/app-insights/telemetry/troubleshoot-app-service-issues).
53
+
54
+
## [ASP.NET Core](#tab/aspnetcore)
55
+
56
+
Use **Recommended** to collect telemetry. Use **Disabled** to turn off App Service autoinstrumentation for ASP.NET Core.
57
+
58
+
> [!NOTE]
59
+
> Only .NET [Long Term Support](https://dotnet.microsoft.com/platform/support/policy/dotnet-core) (LTS) releases are supported. [Trim self-contained deployments](/dotnet/core/deploying/trimming/trim-self-contained) aren't supported. Use [manual instrumentation](/azure/azure-monitor/app/opentelemetry-overview) instead.
60
+
61
+
## [.NET](#tab/net)
62
+
63
+
Use **Recommended** or **Basic** for ASP.NET apps.
64
+
65
+
-**Basic** collects usage trends, correlation from availability results to transactions, host-process unhandled exceptions, and more accurate application performance monitoring (APM) metrics under load when sampling is enabled.
66
+
-**Recommended** includes **Basic** and adds CPU, memory, and I/O trends plus correlation across request and dependency boundaries.
67
+
68
+
## [Java](#tab/java)
69
+
70
+
App Service adds the Application Insights Java 3.x agent and starts collecting telemetry.
71
+
72
+
For Spring Boot native image apps, use the [Azure Monitor OpenTelemetry Distro / Application Insights in Spring Boot native image Java application](https://aka.ms/AzMonSpringNative) instead.
73
+
74
+
For agent configuration, see [Configuration options: Azure Monitor Application Insights for Java](/azure/azure-monitor/app/java-standalone-config). To add custom telemetry, see [Add, modify, and filter telemetry](/azure/azure-monitor/app/opentelemetry-add-modify?tabs=java#modify-telemetry).
75
+
76
+
## [Node.js](#tab/nodejs)
77
+
78
+
App Service supports Node.js autoinstrumentation on Linux for code-based apps and custom containers, and on Windows for code-based apps. This integration is in public preview.
79
+
80
+
To configure the attached agent, set `APPLICATIONINSIGHTS_CONFIGURATION_CONTENT` or `APPLICATIONINSIGHTS_CONFIGURATION_FILE` in App Service app settings. For supported options, see [Node.js configuration](https://github.com/microsoft/ApplicationInsights-node.js#configuration).
81
+
82
+
## [Python](#tab/python)
83
+
84
+
Python autoinstrumentation is supported for Python 3.9 through 3.13 on Linux App Service apps that are deployed as code. Custom containers aren't supported.
85
+
86
+
Live Metrics isn't available for App Service Python autoinstrumentation. If you need Live Metrics, use the [Azure Monitor OpenTelemetry Distro](/azure/azure-monitor/app/opentelemetry-enable?tabs=python).
87
+
88
+
App Service collects logs from the root logger and autoinstruments common libraries, including Django, FastAPI, Flask, psycopg2, requests, urllib, and urllib3.
89
+
90
+
For Django apps, set `DJANGO_SETTINGS_MODULE` in your App Service app settings.
91
+
92
+
To collect more telemetry from other libraries, add supported OpenTelemetry community instrumentation libraries to your app's `requirements.txt` file. App Service detects installed instrumentations automatically. For more information, see [OpenTelemetry community instrumentations](https://github.com/open-telemetry/opentelemetry-python-contrib/tree/main/instrumentation).
93
+
94
+
To configure Python autoinstrumentation, set [OpenTelemetry environment variables](https://opentelemetry.io/docs/reference/specification/sdk-environment-variables/) in App Service app settings.
0 commit comments