Hi All
I have the answer rather simple. I was exploring more complex ideas but
this works.
100-(100 - 100 * (windows_logical_disk_free_bytes{volume=~".:"} /
windows_logical_disk_size_bytes{volume=~".:"}))
On Tuesday, 1 September 2020 at 12:11:46 UTC+1 [email protected] wrote:
> Hi All
>
> I was wondering if you can advise?
>
> I have the following two Prometheus queries relating to windows disk space
> usage. The first of which specifically focusing on the drive C: and the
> second all drives.
>
>
> 100-(100 - 100 * (windows_logical_disk_free_bytes{volume="C:"} /
> windows_logical_disk_size_bytes{volume="C:"}))
>
>
> 100 - (100 - 100 * (windows_logical_disk_free_bytes /
> windows_logical_disk_size_bytes))
>
> I would like to use the query to encompass the disk space for all volumes
> except the system reserved partitions.
>
> Can i please ask if this is possible and how you would do this?
>
> ------------------------------------
> ( sudo below .)
>
> 100-(100 - 100 * (windows_logical_disk_free_bytes{volume="C:","D:"
> ...."Z:"} / windows_logical_disk_size_bytes{volume="C:","D:" ...."Z:"}))
>
> Thank you
>
>
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/2d46232b-a0af-4095-adc9-426e4fa15092n%40googlegroups.com.