(在 Azure 门户中报告支持问题时,似乎没有选择 Application Insights 的选项,因此写了这篇文章)
在大约 12 个小时的时间里,当我尝试查看特定应用服务的 Application Insights 时,我不断在 Azure 门户中看到以下错误消息:
数据暂时无法访问,请参阅http://aka.ms/aistatus。
该链接当前显示:
所有 Application Insights 服务现在都按预期运行。
这显然是不正确的!
Azure 团队的任何人都知道这里发生了什么吗?(提交支持请求时,为什么应用程序洞察不能作为下拉列表中的选项提供?)。
我有一个托管在 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
是否可以配置Microsoft的Application Insights来监控Windows服务?
我有一个在Azure上运行的VM,托管Web服务.在仪表板中可以看到我需要安装哪个版本的监控代理以及需要采取哪些步骤才能允许监控数据?
我最近开始托管我的第一个生产应用程序 我继续并激活应用程序见解,我认为这些有很多价值.但是,我得到了来自开发人员方面的统计信息,例如日志记录来自localhost:xxxx的条目.我确定有办法解决这个问题.谁能给我一些指示吗?
在最近的流量高峰期间,我正在Azure Portal中查看Application Insights遥测.我注意到有些数据丢失了.例如,在峰值开始时,有3个失败的请求.但是,如果我深入了解详细信息,则只显示3个请求中的1个.这些屏幕截图说明了这个问题:
这是一个错误,还是我的遥测被扼杀?如果受到限制,我怎样才能确保所有错误都能通过仪表板?
我目前处于免费套餐,"配额+定价配置"设置刀片表明正在保留100%的数据样本.到目前为止,我只使用了每月配额的3%左右.
我尝试监控CloudService的内存使用情况,并偶然发现了Application Insights.
当我尝试添加它时,我收到以下错误消息:
我们正在使用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以完成该过程.
我想做,
https://example.com/dir01/?query=apple¶m=1https://example.com/dir01/?query=apple¶m=1https://example.com/dir01/?query=lemon+juice¶m=1https://example.com/dir01/?query=lemon+juice¶m=0https://example.com/dir01/?query=tasteful+grape+wine¶m=1applelemon+juicetasteful+grape+winehttps://aka.ms/AIAnalyticsDemo
我认为extract或parseurl(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":""}我有一个简单的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
我有一个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中显示得很好)
我有一堆服务发出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)
更新配置后,我现在看到日志中重复的跟踪消息,但仍然没有任何自定义跟踪.
azure-application-insights ×10
azure ×8
c# ×3
asp.net-core ×2
.net ×1
azureportal ×1
kusto ×1
logging ×1