- counter=> PerfCounterInfo->new(nameInfo=> ElementDescription->new(label=>"Comitted", summary=>"Storage space, in bytes, on this datastore that is actually being used by the virtual machine.\n\nIt includes space actually occupied by disks, logs, snapshots, configuration files etc. Files of the virtual machine which are present on a different datastore (e.g. a virtual disk on another datastore) are not included here.\n\n")),

- vm=>$vmId,

- instance=>$uuid,

- unit=>"Bytes" });

- push (@all_perf_data,

- { rollup=>"latest",

- group=>"datastore",

- name=>"uncommitted",

- value=>$_->uncommitted,

- counter=> PerfCounterInfo->new(nameInfo=> ElementDescription->new(label=>"Uncomitted", summary=>"Additional storage space, in bytes, potentially used by the virtual machine on this datastore.\n\nAdditional space may be needed for example when lazily allocated disks grow, or storage for swap is allocated when powering on the virtual machine.\n\nIf the virtual machine is running off delta disks (for example because a snapshot was taken), then only the potential growth of the currently used delta-disks is considered.\n\n")),

+ counter=> PerfCounterInfo->new(nameInfo=> ElementDescription->new(label=>"Comitted", summary=>"Storage space, in bytes, on this datastore that is actually being used by the virtual machine.\n\nIt includes space actually occupied by disks, logs, snapshots, configuration files etc. Files of the virtual machine which are present on a different datastore (e.g. a virtual disk on another datastore) are not included here.\n\n")),

+ vm=>$vmId,

+ instance=>$uuid,

+ unit=>"Bytes" });

+ push (@all_perf_data,

+ { rollup=>"latest",

+ group=>"datastore",

+ name=>"uncommitted",

+ value=>$_->uncommitted,

+ counter=> PerfCounterInfo->new(nameInfo=> ElementDescription->new(label=>"Uncomitted", summary=>"Additional storage space, in bytes, potentially used by the virtual machine on this datastore.\n\nAdditional space may be needed for example when lazily allocated disks grow, or storage for swap is allocated when powering on the virtual machine.\n\nIf the virtual machine is running off delta disks (for example because a snapshot was taken), then only the potential growth of the currently used delta-disks is considered.\n\n")),

+ vm=>$vmId,

+ instance=>$uuid,

+ unit=>"Bytes" });

+ push (@all_perf_data,

+ { rollup=>"latest",

+ group=>"datastore",

+ name=>"unshared",

+ value=>$_->unshared,

+ counter=> PerfCounterInfo->new(nameInfo=> ElementDescription->new(label=>"Unshared", summary=>"Storage space, in bytes, occupied by the virtual machine on this datastore that is not shared with any other virtual machine.\n\n")),

+ # do not create entries for unmonitorable things like software components

+ nextunless ($_->baseUnits =~ /.+/);

+ # create entry with sensor data

push (@all_perf_data,

- { rollup=>"latest",

- group=>"datastore",

- name=>"unshared",

- value=>$_->unshared,

- counter=> PerfCounterInfo->new(nameInfo=> ElementDescription->new(label=>"Unshared", summary=>"Storage space, in bytes, occupied by the virtual machine on this datastore that is not shared with any other virtual machine.\n\n")),