azure-service-fabric - 应用程序见解接收器选项未在服务结构的应用程序见解中显示性能计数器
问题描述
下面是我为 Application Insights 接收器设置的配置,用于发送 EtwEventSourceProviderConfiguration 和 EtwManifestProviderConfiguration 和 PerformanceCounters。
"WadCfg": {
"DiagnosticMonitorConfiguration": {
"overallQuotaInMB": "50000",
"sinks": "applicationInsights",
"EtwProviders": {
"EtwEventSourceProviderConfiguration": [
{
"provider": "Microsoft-ServiceFabric-Actors",
"scheduledTransferKeywordFilter": "1",
"scheduledTransferPeriod": "PT5M",
"DefaultEvents": {
"eventDestination": "ServiceFabricReliableActorEventTable"
}
},
{
"provider": "Microsoft-ServiceFabric-Services",
"scheduledTransferPeriod": "PT5M",
"DefaultEvents": {
"eventDestination": "ServiceFabricReliableServiceEventTable"
}
}
],
"EtwManifestProviderConfiguration": [
{
"provider": "cbd93bc2-xxxx-4566-b3a7-xxxxxxxx",
"scheduledTransferLogLevelFilter": "Information",
"scheduledTransferKeywordFilter": "4611686018427387904",
"scheduledTransferPeriod": "PT5M",
"DefaultEvents": {
"eventDestination": "ServiceFabricSystemEventTable"
}
}
]
},
"PerformanceCounters": {
"scheduledTransferPeriod": "PT1M",
"PerformanceCounterConfiguration": [
{
"counterSpecifier": "\\Processor(_Total)\\% Processor Time",
"sampleRate": "PT1M",
"unit": "Percent",
"sinks": "applicationInsights"
},
{
"counterSpecifier": "\\Process(My.WebAPI)\\Private Bytes",
"sampleRate": "PT1M",
"sinks": "applicationInsights"
}
]
}
},
"SinksConfig": {
"Sink": [
{
"name": "applicationInsights",
"ApplicationInsights": "d504ba9a-xxx-42b7-xxxx-xxxxxxxxxx"
},
{
"name": "MyApplicationInsightsProfilerSink",
"ApplicationInsightsProfiler": "d504ba9a-xxxx-42b7-xxxx-xxxxxxxxx"
}
]
}
},
"StorageAccount": "sfdgjsxxxxxxxxxxxx"
}
}
},
我在 Log 中看不到任何事件或性能计数器。
解决方案
推荐阅读
- bash - 活动枚举脚本问题
- python - 在使用 if 语句时使用 selenium python 时尝试通过 xpath 查找表的最后一行
- macos - Visual Studio for Mac 上的 .net-core3.1:无法配置 HTTPS 端点
- javascript - 粘贴图片,直接转换为base64标签
- json - c# 自适应卡片模板中的客户端验证
- wordpress - Wordpress:自定义帖子类型重定向到主页
- python-3.x - 几个月来一直没有错误地运行它 - 现在得到)]“未捕获(承诺)TypeError:无法获取”
- python - 如何在 python 的数据集中排除一系列日期?
- c# - 如何在 mvc 中的 viewmodel.cs 文件中检查空格验证
- javascript - 为什么 localStorage getItem 只显示数组的第一项?