停止 Application Insights [英] Stop Application Insights

查看:15
本文介绍了停止 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.

这篇关于停止 Application Insights的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆