File Size Performance Rule

Windows.Monitoring.FileSystem.FileSizePerformance (Rule)

Collects the performance custom counter File Size Performance
Performance Data for size of the Files in a Folder (all files in a Folder).
Rule is disabled by default.

Knowledge Base article:

Summary

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

The performance custom counter File Size Performance counter exposes the Size of the Files contained in a Folder during the sample interval.

Applies to all Files in a Folder.

Configuration

Use the Overrides to enable the rule for a Folder or all Folders.

Additional

The Collection Performance Rule is disabled by default.

Element properties:

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

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Windows.Monitoring.FileSystem.FileSizePerformance.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.FileSizePerformance" Enabled="false" Target="Windows.Monitoring.FileSystem.Folder" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows.Monitoring.FileSystem.FileSizePerformance.DataSource">
<IntervalSeconds>900</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<strFolder>"$Target/Property[Type="Windows.Monitoring.FileSystem.Folder"]/Path$"</strFolder>
</DataSource>
</DataSources>
<ConditionDetection ID="CD" TypeID="Performance!System.Performance.DataGenericMapper">
<ObjectName>File Size Performance</ObjectName>
<CounterName>Performance</CounterName>
<InstanceName>"$Data/Property[@Name='FileName']$"</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>