Fleet’s built-in queries for collecting and storing important device information.
Apple
Linux
Windows
ChromeOS
Disk space
Retrieves total amount of free disk space on a host.
SELECT
(blocks_available * 100 / blocks) AS percent_disk_space_available,
round((blocks_available * blocks_size * 10e-10),2) AS gigs_disk_space_available,
round((blocks * blocks_size * 10e-10),2) AS gigs_total_disk_space
FROM mounts
WHERE path = '/' LIMIT 1
Vitals