收集 .NET CSM Statistic/要求數/秒

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

收集 .NET CSM Statistic/要求數/秒效能計數器

Knowledge Base article:

摘要

此規則會收集網頁的 .NET CSM Statistic/Requests/sec 效能計數器。

此計數器會顯示傳送至受監視網頁的使用者要求數目。此計數器會在監視要求到達 CSM 收集器端點時累加。

此計數器只有在用戶端應用程式效能監視已啟用,且已針對網頁設定用戶端交易時可供網頁使用。

若要為新應用程式的網頁設定用戶端交易:

若要為已監視的應用程式網頁設定用戶端交易:

Element properties:

TargetMicrosoft.SystemCenter.Apm.CsmTransaction
CategoryPerformanceCollection
EnabledTrue
Instance Name.NET CSM Statistic
Counter NameRequests/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.RequestsPerSec" 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>Requests/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>