收集 .NET CSM Statistic/平均頁面要求執行時間效能計數器 (秒)
此規則會從網頁的 .NET CSM Statistic/Average page request time 效能計數器收集資料。
此計數器會顯示受監視之網頁的平均用戶端處理時間 (以秒為單位)。 此時間是從網際網路瀏覽器的角度衡量,並反映使用者體驗與受監視網頁的效能。
此計數器只有在用戶端應用程式效能監視已啟用,且已針對網頁設定用戶端交易時可供網頁使用。
若要為新應用程式的網頁設定用戶端交易:
開啟 [.NET 應用程式效能監視] 範本精靈。
當用戶端監視啟用時,請按一下 [自訂]。
在 [交易] 區段中,按一下 [新增]。
為您要監視的頁面指定用戶端交易設定。
若要為已監視的應用程式網頁設定用戶端交易:
在 .NET 應用程式效能監視範本中,開啟您的 Web 應用程式群組。
按一下 [用戶端監視] 索引標籤。
選取您要變更的應用程式,然後按一下 [自訂]。
在 [交易] 區段中,按一下 [新增]。
為您要監視的頁面指定用戶端交易設定。
Target | Microsoft.SystemCenter.Apm.CsmTransaction |
Category | PerformanceCollection |
Enabled | True |
Instance Name | .NET CSM Statistic |
Counter Name | Average page request execution time |
Frequency | 300 |
Alert Generate | False |
Remotable | False |
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 |
<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>