Azure 诊断设置(预览)

Azure diagnotics settings (preview)

我是 Azure 的新手。我有一个启用了 Application Insight 的应用程序服务。我现在正在尝试了解诊断设置是什么以及它的用途。

似乎 Diagnotics Settings 所做的大部分工作都可以通过 Application Insights 完成。 这是正确的还是我误解了诊断设置背后的目的?

有一些(主要)差异。来自 the docs:

Platform logs in Azure, including the Azure Activity log and resource logs, provide detailed diagnostic and auditing information for Azure resources and the Azure platform they depend on. Platform metrics are collected by default and typically stored in the Azure Monitor metrics database.

现在,当我们谈论审计信息和 activity 日志时,这是 Application Insights (AI) 无法做到的。此外,AI 面向应用程序,而诊断设置用于发出有关 azure 平台资源 的信息。 AI 允许您发送自定义遥测数据,还可以跟踪更多详细信息。

我假设你是在 Azure Web 应用程序或 Azure 函数的上下文中问这个问题的。我建议同时启用两者。在有关 应用程序 的行为方式的详细信息方面,AI 提供的功能比诊断设置要多得多。