服务结构和应用程序洞察性能计数器

时间:2017-11-17 15:28:04

标签: azure-service-fabric azure-application-insights

在哪里可以找到与Service Fabric群集一起使用的性能计数器名称列表?已发布列表here,但我需要在群集的ARM模板中使用实际的确切名称。目前我在模板中有以下配置:

"WadCfg": {
        "DiagnosticMonitorConfiguration": {
          "overallQuotaInMB": "1000",
          "sinks": "applicationInsights",
          "DiagnosticInfrastructureLogs": {},
          "PerformanceCounters": {
            "PerformanceCounterConfiguration": [
              {
                "counterSpecifier": "\\Processor(_Total)\\% Processor Time",
                "sampleRate": "PT3M"
              },
              {
                "counterSpecifier": "\\Memory\\Available MBytes",
                "sampleRate": "PT3M"
              }
            ]
          }

但只有" Memory \ Available MBytes"实际上出现在Application Insights中。

1 个答案:

答案 0 :(得分:1)

这些计数器是实际的Windows性能计数器。所以你只需要寻找它们。一些例子:

http://techgenix.com/Key-Performance-Monitor-Counters/

http://www.appadmintools.com/documents/windows-performance-counters-explained/

根据所有这些信息判断,性能计数器都遵循相同的模式:

first column\second column
\\Processor(_Total)\\% Processor Time
\\Memory\\Available MBytes
\\Network Interface(*)\\Bytes Received/sec
...

您可以通过直接在服务结构VM上运行typeperf并捕获输出来查找更多计数器。您也可以在本地运行它以了解可能的内容。

http://defaultreasoning.com/2009/06/25/list-all-performance-counters-on-a-windows-computer-and-export-it-to-a-file/

 C:>TypePerf.exe –q > counters.txt
相关问题