不能将ApplicationSights的度量添加到Azure

问题描述 投票:0回答:1

为什么该图表不可用于图表?

您没有看到指标刀片中的新指标是

enter image description hereZURE监视器索引延迟:即使指标出现在KQL中,有时在UI中可用的时间更长。

刷新Azure门户,清除浏览器缓存或以隐身模式打开它。
azure azure-application-insights
1个回答
0
投票

有时,由于同步延迟,新的指标需要时间出现在“基于日志的指标”下。

    我创建了一个示例.NET应用程序,已配置的应用程序见解,并且可以无需任何问题即可查看图表。 我的program.cs:
  • using Microsoft.ApplicationInsights.Extensibility; using Microsoft.ApplicationInsights; var builder = WebApplication.CreateBuilder(args); builder.Services.AddApplicationInsightsTelemetry(builder.Configuration["ApplicationInsights:InstrumentationKey"]); builder.Services.AddControllers(); builder.Services.AddSingleton<TelemetryClient>(); var app = builder.Build(); app.UseHttpsRedirection(); app.UseAuthorization(); app.MapControllers(); app.Run();
  • appSettings.json:
  • { "Logging": { "LogLevel": { "Default": "Information", "Microsoft.AspNetCore": "Warning" } }, "AllowedHosts": "*", "ApplicationInsights": { "InstrumentationKey": "<Instrumentation>" } }

我的应用程序见解是***图表


    


最新问题
© www.soinside.com 2019 - 2025. All rights reserved.