<gateway compatibility="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://schema.itrsgroup.com/GA4.4.0-171024/gateway.xsd">
    <probes>
        <probe name="Compute Engine Example">
            <hostname>192.168.9.128</hostname>
        </probe>
    </probes>
    <managedEntities>
        <managedEntity name="Compute Engine Example">
            <probe ref="Compute Engine Example"></probe>
            <sampler ref="probe-processes"></sampler>
        </managedEntity>
    </managedEntities>
    <types></types>
    <samplers>
        <sampler name="probe-processes">
            <plugin>
                <processes>
                    <processes>
                        <process>
                            <data>
                                <alias>
                                    <data>netprobe</data>
                                </alias>
                            </data>
                        </process>
                    </processes>
                </processes>
            </plugin>
            <dataviews>
                <dataview name="probe-processes">
                    <additions>
                        <var-columns>
                            <data>
                                <column>
                                    <data>residentSetSize MB</data>
                                </column>
                                <column>
                                    <data>virtualMemory MB</data>
                                </column>
                            </data>
                        </var-columns>
                    </additions>
                </dataview>
            </dataviews>
        </sampler>
    </samplers>
    <rules>
        <rule name="residentSetSize in MB">
            <targets>
                <target>/geneos/gateway/directory/probe/managedEntity/sampler[(param(&quot;PluginName&quot;)=&quot;PROCESSES&quot;)]/dataview[(@name=&quot;probe-processes&quot;)]/rows/row/cell[(@column=&quot;residentSetSize MB&quot;)]</target>
            </targets>
            <priority>1</priority>
            <pathVariables>
                <pathVariable name="row">
                    <value>
                        <target>
                            <rowName></rowName>
                        </target>
                    </value>
                </pathVariable>
            </pathVariables>
            <pathAliases>
                <pathAlias name="rss">ancestor-or-self::dataview/rows/row[(@name=var(&quot;row&quot;))]/cell[(@column=&quot;residentSetSize&quot;)]</pathAlias>
            </pathAliases>
            <block>
                <transaction>
                    <update>
                        <property>@value</property>
                        <format>
                            <string>%.2f Mb</string>
                            <divide>
                                <dataItem>
                                    <pathAlias ref="rss"></pathAlias>
                                    <property>@value</property>
                                </dataItem>
                                <integer>1024</integer>
                            </divide>
                        </format>
                    </update>
                </transaction>
            </block>
        </rule>
        <rule name="virtualMemory in MB">
            <targets>
                <target>/geneos/gateway/directory/probe/managedEntity/sampler[(param(&quot;PluginName&quot;)=&quot;PROCESSES&quot;)]/dataview[(@name=&quot;probe-processes&quot;)]/rows/row/cell[(@column=&quot;virtualMemory MB&quot;)]</target>
            </targets>
            <priority>1</priority>
            <pathVariables>
                <pathVariable name="row">
                    <value>
                        <target>
                            <rowName></rowName>
                        </target>
                    </value>
                </pathVariable>
            </pathVariables>
            <pathAliases>
                <pathAlias name="vms">ancestor-or-self::dataview/rows/row[(@name=var(&quot;row&quot;))]/cell[(@column=&quot;virtualMemory&quot;)]</pathAlias>
            </pathAliases>
            <block>
                <transaction>
                    <update>
                        <property>@value</property>
                        <format>
                            <string>%.2f Mb</string>
                            <divide>
                                <dataItem>
                                    <pathAlias ref="vms"></pathAlias>
                                    <property>@value</property>
                                </dataItem>
                                <integer>1024</integer>
                            </divide>
                        </format>
                    </update>
                </transaction>
            </block>
        </rule>
    </rules>
    <operatingEnvironment>
        <!--The gateway name must be set, the listen port should be set-->
        <gatewayName>Compute Example</gatewayName>
        <listenPorts>
            <insecure>
                <listenPort>7039</listenPort>
            </insecure>
        </listenPorts>
    </operatingEnvironment>
</gateway>