收集 .NET CSM Statistic/# of Performance violations/sec

Microsoft.SystemCenter.Apm.CsmTransaction.CollectPerformanceEventsCount (Rule)

收集 .NET CSM Statistic/# of Performance violations/sec 性能计数器

Knowledge Base article:

摘要

此规则从网页的 .NET CSM Statistics/# of violations/sec 性能计数器中收集数据。

该计数器显示从 Internet 浏览器角度度量的网页性能冲突的数量。

计数器的值取决于监视配置。 计数器值可能大于报告给 Application Diagnostics 控制台的性能事件的数量,原因是该计数器值包括通过事件限制所抑制的事件。

只有当启用了客户端应用程序性能监视并且为页面配置了客户端事务时,此计数器才可用于网页。

为新应用程序的网页配置客户端事务:

为已在监视的应用程序的网页配置客户端事务:

Element properties:

TargetMicrosoft.SystemCenter.Apm.CsmTransaction
CategoryPerformanceCollection
EnabledTrue
Instance Name.NET CSM 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.CsmTransaction.CollectPerformanceEventsCount" 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 Performance violations/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>