收集 .NET CSM Apps/Avg execution time (毫秒)

Microsoft.SystemCenter.Apm.CsmApplicationInstance.AvgRequestExecutionTime (Rule)

收集 .NET CSM Apps/Average page request execution time 性能计数器(毫秒)

Knowledge Base article:

摘要

此规则从应用程序的 .NET CSM Apps/Average page request execution time 性能计数器中收集数据。

该计数器记录所监视的应用程序的客户端平均处理时间(以毫秒为单位)。 此时间是从 Internet 浏览器的角度度量的,并反映应用程序性能的最终用户体验。

只有当启用了客户端应用程序性能监视时,此计数器才可用。

Element properties:

TargetMicrosoft.SystemCenter.Apm.CsmApplicationInstance
CategoryPerformanceCollection
EnabledTrue
Instance Name.NET CSM Apps
Counter NameAverage page request execution time
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.CsmApplicationInstance.AvgRequestExecutionTime" Enabled="true" Target="Microsoft.SystemCenter.Apm.CsmApplicationInstance" ConfirmDelivery="false" Remotable="false" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Performance!System.Performance.DataProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>Average page request execution time</CounterName>
<ObjectName>.NET CSM Apps</ObjectName>
<InstanceName>$Target/Property[Type="Microsoft.SystemCenter.Apm.CsmApplicationInstance"]/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>