什么是自动检测或无代码附加 - Azure Monitor Application Insights?What is auto-instrumentation or codeless attach - Azure Monitor Application Insights?

自动检测或无代码附加允许使用 Application Insights 来启用应用程序监视,无需更改代码。Auto-instrumentation, or codeless attach, allows you to enable application monitoring with Application Insights without changing your code.

Application Insights 与各种资源提供程序集成,可在不同的环境中工作。Application Insights is integrated with various resource providers and works on different environments. 事实上,你只需启用代理并在某些情况下对其进行配置,该代理就会直接收集遥测数据。In essence, all you have to do is enable and - in some cases - configure the agent, which will collect the telemetry out of the box. 你会立刻在 Application Insights 资源中看到指标、数据和依赖项,因此可以在潜在问题出现之前发现其来源,并通过端到端事务视图分析根本原因。In no time, you'll see the metrics, data, and dependencies in your Application Insights resource, which will allow you to spot the source of potential problems before they occur, and analyze the root cause with end-to-end transaction view.

支持的环境、语言和资源提供程序Supported environments, languages, and resource providers

随着我们添加越来越多的集成,自动检测功能矩阵变得很复杂。As we're adding more and more integrations, the auto-instrumentation capability matrix becomes complex. 下表显示了与各种资源提供程序、语言和环境的支持相对应的项目的当前状态。The table below shows you the current state of the matter as far as support for various resource providers, languages, and environments go.

环境/资源提供程序Environment/Resource Provider .NET.NET .NET Core.NET Core JavaJava Node.jsNode.js
Windows 上的 Azure 应用服务Azure App Service on Windows GA,OnBD*GA, OnBD* GA,选择加入GA, opt-in 个人预览版Private Preview 个人预览版Private Preview
Linux 上的 Azure 应用服务Azure App Service on Linux 空值N/A 不支持Not supported 公共预览版Public Preview 公共预览版Public Preview
AKS 上的 Azure 应用服务Azure App Service on AKS 空值N/A 设计中In design 设计中In design 设计中In design
Azure Functions - 基本Azure Functions - basic GA,OnBD*GA, OnBD* GA,OnBD*GA, OnBD* GA,OnBD*GA, OnBD* GA,OnBD*GA, OnBD*
Azure Functions - 依赖项Azure Functions - dependencies 不支持Not supported 不支持Not supported 公共预览版Public Preview 不支持Not supported
Azure Kubernetes 服务Azure Kubernetes Service 空值N/A 设计中In design 通过代理Through agent 设计中In design
Azure VM (Windows)Azure VMs Windows 公共预览版Public Preview 不支持Not supported 不支持Not supported 不支持Not supported
本地 VM (Windows)On-Premises VMs Windows GA,选择加入GA, opt-in 不支持Not supported 通过代理Through agent 不支持Not supported
独立代理 - 任何环境Standalone agent - any env. 不支持Not supported 不支持Not supported 公共预览版Public Preview 不支持Not supported

*OnBD 是 On by Default(默认启用)的缩写 - 当你在受支持的环境中部署应用后,系统会自动启用 Application Insights。*OnBD is short for On by Default - the Application Insights will be enabled automatically once you deploy your app in supported environments.

Azure 应用服务Azure App Service

WindowsWindows

Azure 应用服务上的应用程序监视适用于 .NET 应用程序,在默认情况下已启用。单击一次即可启用 .NET Core。Java 和 Node.js 均为个人预览版。Application monitoring on Azure App Service is available for .NET application and is enabled by default, .NET Core can be enabled with one click, and Java and Node.js are in private preview.

LinuxLinux

在应用服务中监视 Java 和 Node.js 应用程序的功能为公共预览版,可以在 Azure 门户中启用,在所有区域中提供。Monitoring of Java and Node.js applications in App Service is in public preview and can be enabled in Azure portal, available in all regions.

Azure FunctionsAzure Functions

默认启用对 Azure Functions 的基本监视功能,该功能可以收集日志、性能、错误数据和 HTTP 请求。The basic monitoring for Azure Functions is enabled by default to collects log, performance, error data, and HTTP requests. 对于 Java 应用程序,可以使用分布式跟踪来启用更丰富的监视功能,并获取端到端事务详细信息。For Java applications, you can enable richer monitoring with distributed tracing and get the end-to-end transaction details. 适用于 Java 的此功能为公共预览版,你可以在 Azure 门户中启用它This functionality for Java is in public preview and you can enable it in Azure portal.

Azure Kubernetes 服务Azure Kubernetes Service

目前可以通过独立代理为 Java 应用程序提供 Azure Kubernetes 服务的无代码检测。Codeless instrumentation of Azure Kubernetes Service is currently available for Java applications through the standalone agent.

Azure Windows VM 和虚拟机规模集Azure Windows VMs and virtual machine scale set

适用于 Azure VM 和虚拟机规模集的自动检测可用于 .NET 应用程序Auto-instrumentation for Azure VMs and virtual machine scale set is available for .NET applications

本地服务器On-premises servers

可以轻松地为适用于 .NET 应用程序的本地 Windows 服务器Java 应用启用监视功能。You can easily enable monitoring for your on-premises Windows servers for .NET applications and for Java apps.

其他环境Other environments

通用 Java 独立代理适用于任何环境,无需检测代码。The versatile Java standalone agent works on any environment, there's no need to instrument your code. 按指南启用 Application Insights 并了解 Java 代理的强大功能。Follow the guide to enable Application Insights and read about the amazing capabilities of the Java agent. 此代理为公共预览版,在所有区域提供。The agent is in public preview and available on all regions.

后续步骤Next steps