【发布时间】:2015-09-24 06:13:06
【问题描述】:
我在我们的应用程序中创建了几个自定义性能计数器。当我将应用程序部署到 Azure 时,我可以看到在 WADPerformanceCountersTable 中收集的计数器,但我无法让它们显示在仪表板的 Monitor 选项卡上。
我正在使用 Azure SDK v2.7。我修改了我的 diagnostics.wadcfgx 以包含以下额外的性能计数器。
<PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Requests Current" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Applications Running" sampleRate="PT3M" />
<PerformanceCounterConfiguration counterSpecifier="\Ipseity\Average Aggregate Hydration Time" sampleRate="PT30S" />
<PerformanceCounterConfiguration counterSpecifier="\Ipseity\Number of Aggregate Hydrations / sec" sampleRate="PT30S" />
我实际上并不需要 \ASP.NET\Requests Current 或 \ASP.NET\Applications Running,我只是添加了它们,看看当我选择“添加指标”时是否可以在对话框中显示一些内容。
在这里您可以看到WADPerformanceCountersTable 的一个小sn-p,表明它确实在捕获我有问题的自定义计数器。
我已经为详细监控配置了工作角色,但是当我转到“监控”选项卡并单击“添加指标”时,我不仅没有看到我的自定义性能计数器,而且没有看到我添加的任何其他标准计数器用于测试目的(即\ASP.NET\Requests Current 和\ASP.NET\Applications Running)。
根据http://wacustomperfcounters.codeplex.com/documentation,我正在做的应该可以工作。
我错过了什么?
【问题讨论】:
标签: c# azure performancecounter