标签: azure-application-insights

Application Insights:为什么数据仍然暂时无法访问?

(在 Azure 门户中报告支持问题时,似乎没有选择 Application Insights 的选项,因此写了这篇文章)

在大约 12 个小时的时间里,当我尝试查看特定应用服务的 Application Insights 时,我不断在 Azure 门户中看到以下错误消息:

数据暂时无法访问,请参阅http://aka.ms/aistatus

该链接当前显示:

所有 Application Insights 服务现在都按预期运行。

这显然是不正确的!

Azure 团队的任何人都知道这里发生了什么吗?(提交支持请求时,为什么应用程序洞察不能作为下拉列表中的选项提供?)。

azure azure-application-insights azureportal

9
推荐指数
2
解决办法
2603
查看次数

Azure Monitor/Application Insights 不显示错误的堆栈跟踪

我有一个托管在 Azure 应用服务上的 ASP .Net Core 3.0 Web API。我试图找出为什么它在控制器操作方法之一中抛出 500 内部服务器错误。我已经设置了 Application Insights,并且可以在 Azure 门户上的“失败”页面上看到有多个 500 异常。但是,我看不到它们的堆栈跟踪。我需要做什么才能在 Application Insights 或 Azure Monitor 中打开堆栈跟踪报告。PS 即使我的 API 在 .Net Core 2.2 上,它也没有显示堆栈跟踪,因此它不是 .Net Core 3.0 的东西。

这是一些屏幕截图:

在此输入图像描述

在此输入图像描述

azure azure-monitoring asp.net-core-mvc azure-application-insights

9
推荐指数
2
解决办法
1万
查看次数

配置Microsoft Application Insights以监视Windows服务

是否可以配置Microsoft的Application Insights来监控Windows服务?

我有一个在Azure上运行的VM,托管Web服务.在仪表板中可以看到我需要安装哪个版本的监控代理以及需要采取哪些步骤才能允许监控数据?

c# windows-services azure azure-application-insights

8
推荐指数
1
解决办法
4188
查看次数

如何在Azure应用程序洞察中忽略localhost

我最近开始托管我的第一个生产应用程序 我继续并激活应用程序见解,我认为这些有很多价值.但是,我得到了来自开发人员方面的统计信息,例如日志记录来自localhost:xxxx的条目.我确定有办法解决这个问题.谁能给我一些指示吗?

c# azure azure-application-insights

8
推荐指数
2
解决办法
1837
查看次数

应用程序见解部分缺少数据

在最近的流量高峰期间,我正在Azure Portal中查看Application Insights遥测.我注意到有些数据丢失了.例如,在峰值开始时,有3个失败的请求.但是,如果我深入了解详细信息,则只显示3个请求中的1个.这些屏幕截图说明了这个问题:

AI Blade 1

AI Blade 2

AI Blade 3

这是一个错误,还是我的遥测被扼杀?如果受到限制,我怎样才能确保所有错误都能通过仪表板?

我目前处于免费套餐,"配额+定价配置"设置刀片表明正在保留100%的数据样本.到目前为止,我只使用了每月配额的3%左右.

azure azure-application-insights

8
推荐指数
1
解决办法
2126
查看次数

无法添加Application Insights - 无法安装软件包'Microsoft.Web.Infrastructure'

我尝试监控CloudService的内存使用情况,并偶然发现了Application Insights.

当我尝试添加它时,我收到以下错误消息:

错误信息

  1. 右键单击WebProject - >添加Application Insights Telemetrik
  2. 插入订阅数据 - >单击添加按钮
  3. 现在,当VS尝试安装"Microsoft.ApplicationInsights.Web.2.0.0"时发生错误

我们正在使用VS2015和Windows 10

编辑:
有趣的是我可以Microsoft.ApplicationInsights.Web通过nuget-console 安装2.0.0版.但是当我之后尝试再次添加ApplicationInsights时,它会抛出相同的错误,并显示package-manager-console:

\ Path\To\Project\packages\Microsoft.Bcl.1.0.14中的程序包无法卸载.重新启动Visual Studio以完成该过程.

azure visual-studio azure-application-insights

8
推荐指数
1
解决办法
7615
查看次数

应用程序洞察:分析 - 如何在特定位置提取字符串

我想做,

  • 在"2."中提取"查询"字符串,其中param = 1,如下所示
  • 使用表格为"3"获取Google Analytics中的网页视图

1. pageView中包含的实际网址

  • https://example.com/dir01/?query=apple&param=1
  • https://example.com/dir01/?query=apple&param=1
  • https://example.com/dir01/?query=lemon+juice&param=1
  • https://example.com/dir01/?query=lemon+juice&param=0
  • https://example.com/dir01/?query=tasteful+grape+wine&param=1

2.预期提取的价值

  • apple
  • lemon+juice
  • tasteful+grape+wine

3. AI Analytics的预期输出

  • 查询参数| 计数
    • 苹果| 2
    • 柠檬+果汁| 1
    • 雅致+葡萄+葡萄酒| 1

图片

试图这样做

https://docs.microsoft.com/en-us/azure/application-insights/app-insights-analytics-reference#parseurl

https://aka.ms/AIAnalyticsDemo

我认为extractparseurl(url)应该是有用的.我尝试了后者,parseurl(url)但不知道如何将"查询参数"提取为一列.

pageViews
| where timestamp > ago(1d)
| extend parsed_url=parseurl(url)
| summarize count() by tostring(parsed_url)
| render barchart 
Run Code Online (Sandbox Code Playgroud)
  • url
    • http://aiconnect2.cloudapp.net/FabrikamProd/
  • parsed_url
    • {"Scheme":"http","Host":"aiconnect2.cloudapp.net","Port":"","Path":"/FabrikamProd/","Username":"","Password":"","Query Parameters":{},"Fragment":""}

azure azure-application-insights ms-app-analytics kusto

8
推荐指数
1
解决办法
7126
查看次数

ASP.NET Core MVC应用程序洞察在升级到.NET Core 1.1.1后停止工作

我有一个简单的ASP.NET核心应用程序,我在2016年12月工作.它在应用程序见解和遥测方面工作得很好.

现在4个月后,我想开始从.NET Core 1.1.0升级到1.1.1.在此过程中,包Microsoft.ApplicationInsights.AspNetCore已从版本更新1.0.2到版本2.0.0.

这不幸导致我的应用程序停止工作,特别是我收到此错误:

An error occurred during the compilation of a resource required to process this request. Please review the following specific error details and modify your source code appropriately.

/Views/Shared/_Layout.cshtml

'IHtmlHelper<dynamic>' does not contain a definition for 'ApplicationInsightsJavaScript' and no extension method 'ApplicationInsightsJavaScript' accepting a first argument of type 'IHtmlHelper<dynamic>' could be found (are you missing a using directive or an assembly reference?)
+
    @Html.ApplicationInsightsJavaScript(TelemetryConfiguration)

Show compilation source
#pragma checksum "/Views/Shared/_Layout.cshtml" …
Run Code Online (Sandbox Code Playgroud)

.net c# asp.net-core-mvc azure-application-insights asp.net-core

8
推荐指数
1
解决办法
3901
查看次数

Azure功能详细跟踪日志记录到Application Insights

我有一个Azure功能,它连接到App Insights实例.功能应用程序发出日志消息,我可以在Azure门户的日志流中看到这些消息,以及App Insights跟踪.

我通过向(https://github.com/Azure/azure-webjobs-sdk-script/wiki/host.json)添加一个"tracing"元素将控制台日志级别增加到Verbose ,因此详细信息会显示在日志中流(在Azure门户的功能页面和Kudu中),但我无法在App Insights中显示详细级别跟踪.host.json

有谁知道如何让App Insights显示Azure功能的详细级别跟踪?它甚至可能吗?(信息跟踪及以上内容在App Insights中显示得很好)

logging azure azure-application-insights azure-functions

8
推荐指数
1
解决办法
3776
查看次数

Application Insights用于ASP.NET Core 2.0的跟踪侦听器

我有一堆服务发出System.Diagnostics.Trace.*跟踪消息.当通过ASP.NET WebAPI托管时,我只需包含该Microsoft.ApplicationInsights.TraceListener软件包,并在应用程序洞察中收集服务库中的自定义跟踪.

但是,在通过ASP.NET Core 2.0 WebAPI托管服务时,我无法弄清楚如何获取这些相同的消息.我试过的......

添加应用程序见解

public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
    {
        loggerFactory.AddApplicationInsights(app.ApplicationServices, Microsoft.Extensions.Logging.LogLevel.Information);
     //...
    }
Run Code Online (Sandbox Code Playgroud)

在使用扩展方法添加应用程序洞察之后,我能够看到框架发出的跟踪(例如,Request Start,Request End,...),但是我的自定义跟踪消息都不存在.

添加跟踪侦听器包

我决定添加一下Microsoft.ApplicationInsights.TraceListener包,看看是否有帮助.我更新了configure方法,看起来像这样......

public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
    {
        loggerFactory.AddTraceSource(new System.Diagnostics.SourceSwitch("AppInsightsTraceSwitch")
        {
            Level = System.Diagnostics.SourceLevels.All
        }, new Microsoft.ApplicationInsights.TraceListener.ApplicationInsightsTraceListener());

        loggerFactory.AddApplicationInsights(app.ApplicationServices, Microsoft.Extensions.Logging.LogLevel.Information);
    }
Run Code Online (Sandbox Code Playgroud)

更新配置后,我现在看到日志中重复的跟踪消息,但仍然没有任何自定义跟踪.

这是github上问题.这是一个有问题的样本回购.

azure-application-insights asp.net-core asp.net-core-2.0

8
推荐指数
1
解决办法
1104
查看次数