Azure Application Insights 可扩展性
Azure Application Insights Scalability
当 azure 受到数千条记录(用于负载测试)时,app insights 不会显示所有痕迹和异常。请求肯定发送了,因为天蓝色table中有相应的数据。查询是使用 Azure 门户上的“搜索”和“分析”选项卡完成的。这是一个已知的问题?什么是 way/tool 查看所有跟踪、请求和异常?
正在对您的遥测数据进行采样。通过摄取采样(发生在 Azure 端)或自适应采样(在应用程序端)。
https://docs.microsoft.com/en-us/azure/application-insights/app-insights-sampling
我能提出的最佳建议是删除 AdaptiveSamplingTelemetryProcessor 或仅在 ApplicationInsights.config 文件中编辑它的参数以满足您的需要。
示例 1
这将摄取速率限制为每秒 1000 个事件,但不会对依赖项或跟踪数据应用任何采样
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
<MaxTelemetryItemsPerSecond>1000</MaxTelemetryItemsPerSecond>
<ExcludedTypes>Dependency;Trace</ExcludedTypes>
</Add>
示例 2
这仅针对请求将摄取速率限制为每秒 500 个事件。所有其他类型均未采样。
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
<MaxTelemetryItemsPerSecond>500</MaxTelemetryItemsPerSecond>
<IncludedTypes>Request</IncludedTypes>
</Add>
ExcludedTypes 关于 GitHub
的注释
IncludedTypes 关于 GitHub
的注释
当 azure 受到数千条记录(用于负载测试)时,app insights 不会显示所有痕迹和异常。请求肯定发送了,因为天蓝色table中有相应的数据。查询是使用 Azure 门户上的“搜索”和“分析”选项卡完成的。这是一个已知的问题?什么是 way/tool 查看所有跟踪、请求和异常?
正在对您的遥测数据进行采样。通过摄取采样(发生在 Azure 端)或自适应采样(在应用程序端)。
https://docs.microsoft.com/en-us/azure/application-insights/app-insights-sampling
我能提出的最佳建议是删除 AdaptiveSamplingTelemetryProcessor 或仅在 ApplicationInsights.config 文件中编辑它的参数以满足您的需要。
示例 1
这将摄取速率限制为每秒 1000 个事件,但不会对依赖项或跟踪数据应用任何采样
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
<MaxTelemetryItemsPerSecond>1000</MaxTelemetryItemsPerSecond>
<ExcludedTypes>Dependency;Trace</ExcludedTypes>
</Add>
示例 2
这仅针对请求将摄取速率限制为每秒 500 个事件。所有其他类型均未采样。
<Add Type="Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel.AdaptiveSamplingTelemetryProcessor, Microsoft.AI.ServerTelemetryChannel">
<MaxTelemetryItemsPerSecond>500</MaxTelemetryItemsPerSecond>
<IncludedTypes>Request</IncludedTypes>
</Add>
ExcludedTypes 关于 GitHub
的注释IncludedTypes 关于 GitHub
的注释