VMware Cloud Community  Enthusiast

## Hard threshold and free space

Hi all,

I tried to create an hard threshold to control when a file system within a VM disk reaches a certain threshold as free space. However, I understand that you can not set a percentage value (ie you can not set a warning when the free disk space is 20% of the total), but the precise value of the remaining space (that I can set a warning when the free space is smaller, eg. of 30GB). Can anyone help me?

Matrix

1 Solution

Accepted Solutions  Immortal

Hi Matrix,

Yes you can do a % value. This will have to be done using a Super Metric. Below is an example of one that I did :

100 - (100*((avg(\$This:A909))/(avg(\$This:A913))))

This is the explanation : 100 - (100*((avg(This Resource: Disk Space|Virtual Disk Used (GB)))/(avg(This Resource: Disk Space|Provisioned Space (GB)))))

Here is my blog around how to create and assign Super Metric to a object : http://www.virtualclouds.co.za/?p=254

That will get you going.

2 Replies  Immortal

Hi Matrix,

Yes you can do a % value. This will have to be done using a Super Metric. Below is an example of one that I did :

100 - (100*((avg(\$This:A909))/(avg(\$This:A913))))

This is the explanation : 100 - (100*((avg(This Resource: Disk Space|Virtual Disk Used (GB)))/(avg(This Resource: Disk Space|Provisioned Space (GB)))))

Here is my blog around how to create and assign Super Metric to a object : http://www.virtualclouds.co.za/?p=254

That will get you going.  Enthusiast