Windows의 MSSQL: DB 엔진 CPU 사용률(\%)

Microsoft.SQLServer.Windows.CollectionRule.DBEngine.CPUUtilization (Rule)

Windows의 MSSQL DB 엔진 CPU 사용률(\%) 성능 수집 규칙입니다.

Knowledge Base article:

요약

Windows의 MSSQL: DB 엔진 CPU 사용률(%)

DB 엔진 인스턴스의 시스템 CPU 사용량입니다.

CPU 사용량 비율은 SQL Server 인스턴스에 대해 설정된 프로세서 선호도 마스크에 따라 달라집니다. 선호도 마스크가 모든 프로세서에 대해 자동으로 설정된 경우 SQL Server 버전에 따라 모든 프로세서 코어의 사용량 계산에 누적 값이 포함됩니다.

규칙의 실행 간격은 60초보다 작아서는 안 되며 60으로 나눌 수 있어야 합니다. 그렇지 않으면 규칙을 통해 반환되는 데이터가 부정확해집니다.

재정의 가능한 매개 변수

이름

설명

기본값

사용

워크플로 사용하거나 사용하지 않도록 설정합니다.

간격(초)

워크플로를 실행하는 반복 시간 간격(초)입니다.

900

동기화 시간

24시간 형식으로 지정된 동기화 시간입니다. 생략될 수 있습니다.

 

시간 제한(초)

여기서 지정한 시간 동안 워크플로가 실행된 후 워크플로가 닫히고 실패로 표시됩니다.

300

데이터베이스 연결 시간 제한(초)

워크플로는 지정된 기간 동안 데이터베이스에 액세스할 수 없으면 실패하며 이벤트를 등록합니다.

15

Element properties:

TargetMicrosoft.SQLServer.Windows.DBEngine
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SQLServer.Windows.DataSource.CPUUtilizationMapped Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.SQLServer.Windows.CollectionRule.DBEngine.CPUUtilization" Enabled="true" Target="SqlDiscW!Microsoft.SQLServer.Windows.DBEngine">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.SQLServer.Windows.DataSource.CPUUtilizationMapped">
<MachineName>$Target/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/MachineName$</MachineName>
<InstanceName>$Target/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/InstanceName$</InstanceName>
<ConnectionString>$Target/Property[Type="SqlCoreLib!Microsoft.SQLServer.Core.DBEngine"]/ConnectionString$</ConnectionString>
<MonitoringType>$Target/Property[Type="SqlDiscW!Microsoft.SQLServer.Windows.DBEngine"]/MonitoringType$</MonitoringType>
<SqlTimeoutSeconds>15</SqlTimeoutSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>