Now, I am collecting a disk space log by using a WMI.
I want to make a stacked bar chart about disk space.
How can I make a stack bar chart for Free space & Used space by driver (C: , 😧 ..)
Collect Command :::
interval = 30
wql = Select Name , FreeSpace , Size From Win32_LocalDisk where DriveType=3
disabled = 0
Collected Log Data :::
used space = Size - FreeSpace, you can calculate the difference and chart it in a stacked chart where the total height of each bar will be equivalent to the total space:
<yourbasesearch> | eval UsedSpace=Size-FreeSpace | chart first(UsedSpace),first(FreeSpace)