SSRS 2016: CPU 使用率(\%)

Microsoft.SQLServer.2016.ReportingServices.PerformanceRule.Instance.CPUUsageByInstance (Rule)

规则将收集 SSRS 实例的 CPU 使用率。

Knowledge Base article:

摘要

规则将收集 SSRS 实例的 CPU 使用率。

可替代参数

名称

说明

默认值

已启用

启用或禁用工作流

间隔(秒)

运行工作流的重复间隔时间(秒)。

300

同步时间

使用 24 小时格式指定的同步时间。可以忽略。

 

超时(秒)

指定允许工作流在被关闭并标记为失败之前运行的时间。

300

Element properties:

TargetMicrosoft.SQLServer.2016.ReportingServices.Instance
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.2016.ReportingServices.DataSource.MappedInstancePerfomanceDataProvider Microsoft.SQLServer.MonitoringAccount
Mapper ConditionDetection System.Performance.DataGenericMapper Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SQLServer.2016.ReportingServices.PerformanceRule.Instance.CPUUsageByInstance" Enabled="true" Target="SQLRS!Microsoft.SQLServer.2016.ReportingServices.Instance" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.2016.ReportingServices.DataSource.MappedInstancePerfomanceDataProvider" RunAs="GPMP!Microsoft.SQLServer.MonitoringAccount">
<ServiceName>$Target/Property[Type='SQLRS!Microsoft.SQLServer.2016.ReportingServices.Instance']/ServiceName$</ServiceName>
<InstallPath>$Target/Property[Type='SQLRS!Microsoft.SQLServer.2016.ReportingServices.Instance']/InstallPath$</InstallPath>
<PerformanceCounterClassName>SystemDiagnosticsProcess</PerformanceCounterClassName>
<PerformanceCounterPropertyName>CpuUsage</PerformanceCounterPropertyName>
<DividerIfGreater>0</DividerIfGreater>
<Divider>1</Divider>
<IntervalSeconds>300</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<ConditionDetection ID="Mapper" TypeID="SystemPerf!System.Performance.DataGenericMapper">
<ObjectName>SQL RS Instance</ObjectName>
<CounterName>CPU Used By SSRS (%)</CounterName>
<InstanceName/>
<Value>$Data/Property[@Name='CpuUsage']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>