Skip to content

Virtual Machine Filesystem Usage

HyperCloud adds a new tag to the VM monitoring data returned by the orchestrator API calls one.vm.monitoring and one.vm.info. This tag is called HYPERCLOUD_FSUSAGE. It contains base64-encoded zlib-compressed JSON. Example data:

<VM>
    <MONITORING>
        <HYPERCLOUD_FSUSAGE><![CDATA[eJyL5uKsVlAKy88pzU1VslKo5uLkVArJL0nMAXKMzUx0QPzQ4tQUJK5bUSpIqQGY45cI1qekn5Japl+ckqTExVmrUKuDx1RDSxMDY2Nkg03NzE0tkI02NDI3MDHDZn6iIcSCWACUJSsK]]></HYPERCLOUD_FSUSAGE>
    </MONITORING>
</VM>

Which is then parsed into:

[lancelot] root@hypercloud-dashboard:~# hypercloud vm show 3 | grep HYPERCLOUD_FSUSAGE | awk '{print $NF}' | base64 -d | openssl zlib -d; echo
[
    { "Volume": {
        "Total": 364,
        "Used": 364,
        "Free": 0,
        "Name": "/dev/sdb"
    } },
    { "Volume": {
        "Total": 194033,
        "Used": 56758,
        "Free": 127046,
        "Name": "/dev/sda1"
    } }]
[lancelot] root@hypercloud-dashboard:~# 

Which indicates that there are two volumes, named /dev/sda1 and /dev/sdb, with their respective usage information.

This monitoring can be turned off by creating a VM template attribute called HYPERCLOUD_FSUSAGE_SKIP with the value of YES.