Single File Performance Rule

Windows.Monitoring.FileSystem.SingleFilePerformance (Rule)

Collects the performance custom counter Single File Size Performance
Linked to the File Class. Collects performance Data (File Size) for a single instance (one file only).
Monitor is disabled by default.

Knowledge Base article:

Summary

This rule collects performance data for the performance custom counter Single File Size Performance. This information is collected and is exposed one or more Views and/or Reports.

The performance custom counter Single File Size Performance counter exposes the size of a single file during the sample interval.

Configuration

Use the override to enable the rule for a File or all Files.

Additional

The Collection Performance Rule is disabled by default.

Element properties:

TargetWindows.Monitoring.FileSystem.File
CategoryPerformanceCollection
EnabledFalse
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Windows.Monitoring.FileSystem.SingleFilePerformance.DataSource Default
CD ConditionDetection System.Performance.DataGenericMapper Default
WritetoDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WritetoDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Windows.Monitoring.FileSystem.SingleFilePerformance" Enabled="false" Target="Windows.Monitoring.FileSystem.File" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows.Monitoring.FileSystem.SingleFilePerformance.DataSource">
<IntervalSeconds>900</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<strFolder>"$Target/Property[Type="Windows.Monitoring.FileSystem.File"]/Path$"</strFolder>
<FileName>"$Target/Property[Type="Windows.Monitoring.FileSystem.File"]/Name$"</FileName>
</DataSource>
</DataSources>
<ConditionDetection ID="CD" TypeID="Performance!System.Performance.DataGenericMapper">
<ObjectName>Single File Size Performance</ObjectName>
<CounterName>Performance</CounterName>
<InstanceName>"$Target/Property[Type="Windows.Monitoring.FileSystem.File"]/Name$"</InstanceName>
<Value>$Data/Property[@Name='FileSize']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WritetoDB" TypeID="SystemCenter!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WritetoDW" TypeID="SystemCenter1!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>