我有一个控制台应用程序,它使用application Insights来记录遥测数据。它能够记录事件。但是性能计数器没有被记录。
var perfCollectorModule = new PerformanceCollectorModule();
perfCollectorModule.Counters.Add(new PerformanceCounterCollectionRequest(
@"Sales(electronics)# Items Sold", "Items sold"));
perfCollectorModule.Initialize(TelemetryConfiguration.Active);
您是否验证了运行应用程序的用户是"性能监视器用户"组的成员?