Back to Geneos FAQ

How to convert Disk sampler freeSpace from MB to GB

Users can add a new column to the Disk sampler. Then create a gateway rule to populate the desired unit with compute engine function format().

First, go to the Disk sampler’s Advanced tab. Enter the same name of the sampler under Dataviews, and select the Additions button.

Disk name of sampler

You can create a new column named freeSpace in GB.

freeSpace in GB column

Then, create a new gateway rule and go to the Advanced tab. Under the Path Aliases option, create a new one that points to the freeSpace column. In the Rule Block, you can make use of the format() function for the conversion.

value format("%0.2f GB", path "freeSpace" value / 1024)

We have provided the gateway rule in XML format for reference.

Below is the result on Active Console.

Free space result in Active Console

For more information, check the documentation about Compute engine and Gateway Rule format() function.

["Geneos"] ["Geneos > Netprobe"] ["FAQ"]

Was this topic helpful?