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

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

收集 .NET Statistic/\% Exception Events/sec 效能計數器

Knowledge Base article:

摘要

此規則會針對交易收集 .NET Statistic % 例外狀況的事件數/秒效能計數器。

此計數器會記錄由交易所產生的例外狀況事件數,該交易已設有應用程式效能監視。此計數器記錄的事件數取決於資訊,例如代理程式設定、重要例外狀況佔所有例外狀況的比例以及自訂例外狀況處理常式。此計數器可能會大於回報至 [應用程式診斷] 主控台的例外狀況事件數,因為此計數器同時包括 [事件節流] 所封鎖的事件。

此計數器只有在啟用應用程式效能監視時可以使用。

發生未處理的例外狀況時,計數器會累加。若要解決這些例外狀況,請檢查例外狀況的類型與該例外狀況的來源函式。解決這些問題通常需要存取應用程式原始碼。

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>