\% Used Memory (Universal Linux)

Microsoft.Linux.Universal.OperatingSystem.PercentUsedMemory.Collection (Rule)

Collection rule for the performance counter Memory\\% Used Memory

Knowledge Base article:

Summary

This rule collects performance data for the Memory\% Used Memory performance counter. The collected values are accessible in performance views and reports.

This metric exposes the total amount of memory currently in use by the system as a percentage of the total memory on the system.

The percentage of used memory value is calculated by subtracting available memory (MemFree, Buffers and Cached) from total physical memory, and comparing to the total physical memory value.

Element properties:

TargetMicrosoft.Linux.Universal.OperatingSystem
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

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

Source Code:

<Rule ID="Microsoft.Linux.Universal.OperatingSystem.PercentUsedMemory.Collection" Target="Universal!Microsoft.Linux.Universal.OperatingSystem" Enabled="true" Remotable="true">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Unix!Microsoft.Unix.WSMan.PerfCounterProvider">
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_MemoryStatisticalInformation?__cimnamespace=root/scx</Uri>
<Filter/>
<SplitItems>false</SplitItems>
<Interval>300</Interval>
<ObjectName>Memory</ObjectName>
<CounterName>% Used Memory</CounterName>
<InstanceName/>
<Value>$Data/WsManData/*[local-name(.)='SCX_MemoryStatisticalInformation']/*[local-name(.)='PercentUsedMemory']$</Value>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>