停止应用程序见解 [英] Stop Application Insights
问题描述
我们为Azure门户中托管的Web应用程序安装了Application Insights.
We installed Application Insights for our Web Application hosted in Azure portal.
现在它发送报告,等等,该应用程序刚刚启动,我们不需要所有这些数据.是否可以通过Application Insights完全停止/禁用所有数据收集/报告?
Now it sends reports, etc, the application is just started, we don't need all that data. Is there a way to completely stop/disable all data collection/reports by the Application Insights?
我的应用程序是ASP.NET Core,我在"Application Insights"文件夹下有一个 ConnectedService.json
文件,其中包含以下内容
My application is ASP.NET Core one, I have a ConnectedService.json
file under "Application Insights" folder, with the following content
{
"ProviderId": "Microsoft.ApplicationInsights.ConnectedService.ConnectedServiceProvider",
"Version": "8.6.404.2",
"GettingStartedDocument": {
"Uri": "https://go.microsoft.com/fwlink/?LinkID=798432"
}
}
推荐答案
您可以对收集的数据设置每日上限.
You could put a daily cap on your collected data.
位于配置"->功能和功能"下价钱.您每天可以低至0.0323 GB.每月约40美分.
It's under Configure -> Features & pricing. You can go as low as 0.0323 GB a day. Which amounts to about 40 cents a month.
通过这种方式,您不必发布应用程序即可停止或开始收集数据.
This way you don't have to publish your app to stop or start collecting data.
但是,这样您就必须能够接受控制台错误.
But this way you have to be able to accept a console error.
这篇关于停止应用程序见解的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!