收集 .NET CSM Statistic/\% of Exceptions/sec 性能计数器
此规则从网页的 .NET CSM Statistic/% of Exceptions/sec 性能计数器中收集数据。
此性能计数器显示 Internet 浏览器中发生的未处理 JavaScript 异常的速率。 只有当启用了客户端应用程序性能监视并且为页面配置了客户端事务时,它才可用于网页。
为新应用程序的网页配置客户端事务:
打开 .NET 应用程序性能监视模板向导。
在启用客户端监视时,单击“自定义”。
在“事务”部分,单击“添加”。
指定要监视的页面的客户端事务设置。
为已在监视的应用程序的网页配置客户端事务:
在 .NET 应用程序性能监视模板中,打开你的 Web 应用程序组。
单击“客户端监视”选项卡。
选择要更改的应用程序,然后单击“自定义”。
在“事务”部分,单击“添加”。
指定要监视的页面的客户端事务设置。
Target | Microsoft.SystemCenter.Apm.CsmTransaction |
Category | PerformanceCollection |
Enabled | True |
Instance Name | .NET CSM Statistic |
Counter Name | \% of Exceptions/sec |
Frequency | 300 |
Alert Generate | False |
Remotable | False |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | System.Performance.DataProvider | Default |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
WriteToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<Rule ID="Microsoft.SystemCenter.Apm.CsmTransaction.CollectExceptionEventsRate" Enabled="true" Target="Microsoft.SystemCenter.Apm.CsmTransaction" ConfirmDelivery="false" Remotable="false" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Performance!System.Performance.DataProvider">
<ComputerName>$Target/Host/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>% of Exceptions/sec</CounterName>
<ObjectName>.NET CSM Statistic</ObjectName>
<InstanceName>$Target/Property[Type="Microsoft.SystemCenter.Apm.CsmTransaction"]/CounterInstance$</InstanceName>
<AllInstances>false</AllInstances>
<Frequency>300</Frequency>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>