收集 .NET CSM Statistic/效能違規數/秒

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

收集 .NET CSM Statistic/效能違規數/秒效能計數器

Knowledge Base article:

摘要

此規則會從網頁的 .NET CSM Statistics/# of violations/sec 效能計數器收集資料。

計數器會顯示從網際網路瀏覽器的角度衡量的網頁效能違規數目。

計數器的值取決於監視設定。此計數器值可能會大於回報給 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>