我使用 Prometheus 存储性能指标并以百分位数形式查询结果(例如第 95 个百分位数响应时间)。我使用prometheus-net来发出它们。
Azure AppInsights 中的等效项是什么?
我看到 AppInsights/Kusto 中有百分位数函数,但是当我使用 GetMetric("blah").TrackValue(42) 时,它存储 Count、Min、Max、Sum 和 StdDev,这不是我使用的直方图分桶方法到《普罗米修斯》中。
for(int i=0; i < 500; i++) {
//Write some metrics
telemetryClient.GetMetric("blah").TrackValue(42); //real data isn't constant
}
Run Code Online (Sandbox Code Playgroud)
customMetrics
| where name == "blah"
//| summarize avg(value), percentiles(value, 50, 95) by bin(timestamp, 2m)
Run Code Online (Sandbox Code Playgroud)
azure azure-monitoring azure-application-insights prometheus azure-log-analytics
既然 .Net Core 3.0 已经发布了 core3 上 Azure Functions 的故事?
当我尝试将项目翻转到<TargetFramework>netcoreapp3.0</TargetFramework>它时,
它仍然报告为在 2.2 上运行。
如果我尝试访问 3.0 的 api,它只会爆炸,这是有道理的,因为尽管有项目设置,它似乎仍在强制运行。
我用一个非常基本的 EF 语句超时。我只是从带有 Entity.Title.StartsWith("test") 和 .Take(25) 的单个表中进行选择。当我为不返回任何结果的搜索运行此程序时,我会超时。
如果我分析并抓取 sql 语句,它看起来不错,如果我在 Management Studio 中运行该 sql,它会在几分之一秒内运行!
为什么相同的查询会在 Management Studio 中运行亚秒级并在由 EF 生成并从 Asp.Net 应用程序调用时超时?
我们的代码依赖于检查Global.asax Application_AuthenticateRequest(...)方法中的Context.User.Identity值来检索有关登录用户的一些信息.这在经典模式下工作正常但是当我翻转IIS以使用集成管道"Context.User"返回为null时,但只是间歇性地返回.有什么想法吗?
我有<authentication mode ="Windows">并且只在虚拟目录中启用了Windows Auth.
asp.net iis-7 windows-authentication integrated-pipeline-mode