gpt4 book ai didi

azure-application-insights - 使用应用服务代理禁用 App Insights 性能计数器收集

转载 作者:行者123 更新时间:2023-12-04 09:27:40 29 4
gpt4 key购买 nike

我将 App Service 捆绑的 App Insights 代理与 .Net 4.7 应用程序一起使用,并且没有使用 SDK。我配置代理的唯一选项是应用程序设置,如文档 https://docs.microsoft.com/en-us/azure/azure-monitor/app/azure-web-apps?tabs=net#enable-agent-based-monitoring 中所述。
因为我没有使用 SDK,所以我没有 applicationInsights.config文件,或 appsettings.json文件来放入配置信息,我也不能执行代码来配置收集器或初始化器。
谁能帮我弄清楚在这种情况下如何禁用性能计数器的收集?
文档说您可以使用特制的应用程序设置,例如 MicrosoftAppInsights_AdaptiveSamplingTelemetryProcessor_InitialSamplingPercentage ,但我无法弄清楚我将使用什么应用程序设置来禁用性能计数器。

最佳答案

我咨询了产品团队,目前在 App Services 中使用基于代理的监控是不可能的。如果你想禁用这个模块,你需要使用 SDK,这样你就可以删除 perf counters 模块。

关于azure-application-insights - 使用应用服务代理禁用 App Insights 性能计数器收集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62950132/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com