Azure Application Insights可伸缩性

时间:2017-01-27 18:06:01

标签: azure-application-insights

当azure被数千条记录锤击(用于负载测试)时,应用洞察不会显示所有痕迹和异常。由于azure表中有相应的数据,因此肯定会发送请求。使用Azure门户上的“搜索和分析”选项卡完成查询。这是一个已知的问题?查看所有跟踪,请求和异常的方式/工具是什么?

1 个答案:

答案 0 :(得分:0)

正在对您的遥测进行采样。通过摄取采样(在Azure端发生)或自适应采样(在应用程序端)。

https://docs.microsoft.com/en-us/azure/application-insights/app-insights-sampling

我可以做的最好的建议是删除AdaptiveSamplingTelemetryProcessor或只是编辑它的参数以满足您在ApplicationInsights.config文件中的需要。

示例1

这会将摄取速率限制为每秒1000个事件,但不会对Depdendency或Trace数据应用任何采样

<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的说明