收集 .NET Statistic/\% Exception Events/sec

Microsoft.SystemCenter.Apm.Transaction.CollectExceptionEventsRate (Rule)

收集 .NET Statistic/\% Exception Events/sec 性能计数器

Knowledge Base article:

摘要

此规则为事务收集 .NET Statistic % of Exceptions/sec 性能计数器。

此计数器记录由已配置为接受应用程序性能监视的事务生成的异常事件的比率。 此计数器记录的事件数基于一些信息,如代理配置、重要异常与所有异常之间的比例,以及自定义的异常处理程序。 此计数器可能比报告给 Application Diagnostic 控制台的异常事件率大,因为它还包括了事件限制所抑制的事件。

仅在启用应用程序性能监视时,此计数器才可用。

在出现未处理的异常时,计数器的值将会增加。 要解决这些异常,请查看异常类型和引发异常的函数。 解决这些类型的问题通常需要访问应用程序源代码。

Element properties:

TargetMicrosoft.SystemCenter.Apm.Transaction
CategoryPerformanceCollection
EnabledTrue
Instance Name.NET Statistic
Counter Name\% of Exceptions/sec
Frequency300
Alert GenerateFalse
RemotableFalse

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource System.Performance.DataProvider Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SystemCenter.Apm.Transaction.CollectExceptionEventsRate" Enabled="true" Target="Microsoft.SystemCenter.Apm.Transaction" 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 Statistic</ObjectName>
<InstanceName>$Target/Property[Type="Microsoft.SystemCenter.Apm.Transaction"]/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>