Apache HTTP 서버 사용 중 작업자 백분율 수집

Microsoft.ApacheHTTPServer.ManagedServer.Unix.PctBusyWorkers.Collection (Rule)

이 규칙은 Apache HTTP 서버에 대한 현재 사용 중 작업자 백분율을 수집합니다.

Knowledge Base article:

요약

이 규칙은 관리되는 Apache HTTP 서버\사용 중 작업자 백분율 성능 카운터에 대한 성능 데이터를 수집합니다. 수집된 값은 성능 보기 및 보고서에서 확인할 수 있습니다.

이 메트릭은 모든 Apache HTTP 서버 프로세스와 비교하여, 사용 중인 Apache HTTP 서버 작업자 프로세스를 백분율로 나타냅니다.

Element properties:

TargetMicrosoft.ApacheHTTPServer.ManagedServer.Unix
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Oss.WSMan.PerfCounterProvider Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.ApacheHTTPServer.ManagedServer.Unix.PctBusyWorkers.Collection" Target="Microsoft.ApacheHTTPServer.ManagedServer.Unix" Remotable="true" Enabled="onStandardMonitoring">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Oss!Microsoft.Oss.WSMan.PerfCounterProvider">
<Interval>300</Interval>
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/Apache_HTTPDServerStatistics?__cimnamespace=root/apache</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<ObjectName>Apache HTTP Server</ObjectName>
<CounterName>Pct Busy Workers</CounterName>
<InstanceName>$Data/WsManData/*[local-name(.)='Apache_HTTPDServerStatistics']/*[local-name(.)='InstanceID']$</InstanceName>
<Value>$Data/WsManData/*[local-name(.)='Apache_HTTPDServerStatistics']/*[local-name(.)='PctBusyWorkers']$</Value>
<PreMapperFilter>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">/DataItem/WsManData/*[local-name(.)='Apache_HTTPDServerStatistics']/*[local-name(.)='PctBusyWorkers']</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^.+</Pattern>
</RegExExpression>
</PreMapperFilter>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>