I am interested in recording Disk Capacity (in MB) and Disk Usage (in MB) for Windows OS instances. Disk capacity is desired because most of the hosts I am interested in, are VMs, and the vDisk size may be expanded or shrunk during its lifetime, and I am interested in being able to see historic disk capacity and used capacity.
There are two winperf counters for each logical volume that telegraf can send to influxdb “Percent_Free_Space” and “Free_Megabytes”, unfortunately these are not quite what I am after, however what I am after can be calculated. Capacity can be calculated with (Free_Megabytes / (Percent_Free_Space/100)), and Used Capacity can be calculated with (Capacity_MB - Free_Megabytes).
Is there any way of creating these “pseudo winperf counters” in telegraf to then send to influxdb ?