Samla in .NET CSM-statistik/Genomsnittlig körningstid (sek)

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

Prestandaräknaren Samla in .NET CSM-statistik/Genomsnittlig körningstid för sidförfrågan (sek)

Knowledge Base article:

Sammanfattning

Regeln samlar in data från .NET CSM-statistik/Genomsn. körningstid för sidbegäran för program.

Räknaren visar genomsnittlig bearbetningstid på klientsidan (i sekunder) för de övervakade webbsidorna. Den här tiden mäts från webbläsaren och visar slutanvändarens upplevelse av den övervakade webbsidans prestanda.

Den här räknaren är endast tillgänglig för webbsidor om programprestandaövervakning på klientsidan har aktiverats och transaktioner på klientsidan har konfigurerats för sidan.

Så här konfigurerar du transaktioner på klientsidan för en webbsida i ett nytt program:

Så här konfigurerar du transaktioner på klientsidan för en webbsida i ett program som redan övervakas:

Element properties:

TargetMicrosoft.SystemCenter.Apm.CsmTransaction
CategoryPerformanceCollection
EnabledTrue
Instance Name.NET CSM Statistic
Counter NameAverage page request execution time
Frequency300
Alert GenerateFalse
RemotableFalse

Member Modules:

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

Source Code:

<Rule ID="Microsoft.SystemCenter.Apm.CsmTransaction.AvgRequestExecutionTimeSeconds" 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>Average page request execution time</CounterName>
<ObjectName>.NET CSM Statistic</ObjectName>
<InstanceName>$Target/Property[Type="Microsoft.SystemCenter.Apm.CsmTransaction"]/CounterInstance$</InstanceName>
<AllInstances>false</AllInstances>
<Frequency>300</Frequency>
<ScaleBy>1000</ScaleBy>
</DataSource>
</DataSources>
<ConditionDetection TypeID="Performance!System.Performance.DataGenericMapper" ID="Mapper">
<ObjectName>.NET CSM Statistic</ObjectName>
<CounterName>Average page request execution time (seconds)</CounterName>
<InstanceName>$Target/Property[Type="Microsoft.SystemCenter.Apm.CsmTransaction"]/CounterInstance$</InstanceName>
<Value>$Data/Value$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>