收集 .NET Statistic/Performance Events/sec

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

收集 .NET Statistic/Performance Events/sec 性能计数器

Knowledge Base article:

摘要

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

此计数器记录事务生成的性能事件的比率。 此计数器记录的事件数基于一些信息,如代理配置、阈值级别和启用的命名空间。 此计数器可能比报告给 Application Diagnostic 控制台的性能事件率大,因为它还包括了事件限制所抑制的事件。

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

服务器问题或查询结构和复杂性的问题可能会导致数据库调用时间过长。 文件服务器问题可能会导致文件 I/O 时间很长。 Web 服务或它驻留的服务器关闭,或者 Web 服务代码中出现问题,都可能会导致 Web 服务的性能问题。 复杂或低效的代码可能会导致应用程序的内部执行时间很长。

Element properties:

TargetMicrosoft.SystemCenter.Apm.Transaction
CategoryPerformanceCollection
EnabledTrue
Instance Name.NET Statistic
Counter Name# of Performance violations/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.CollectPerformanceEvents" 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 Performance violations/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>