13 Feb 2025 01:15 PM
Hi Team,
We require DQL query on disk free space with OS type.
Information require through dql query --
disk free space for /opt/ directory
os type-like Linux ubuntu , AIX
Thanks in advance !
Solved! Go to Solution.
13 Feb 2025 03:59 PM
Hi @akashsaini,
You can try this query :
timeseries avg(dt.host.disk.free), by: { dt.entity.host, dt.entity.disk }
| fieldsAdd dt.entity.host.name = entityName(dt.entity.host)
| fieldsAdd dt.entity.disk.name = entityName(dt.entity.disk)
| lookup [fetch dt.entity.host
| fieldsAdd osType2=osType], sourceField:dt.entity.host, lookupField:id, fields:{osType2}
| fieldsAdd DiskFree = arrayAvg(`avg(dt.host.disk.free)`)
| fieldsKeep dt.entity.host.name,dt.entity.disk.name, osType2, DiskFree
Let me know if it works
17 Feb 2025 08:38 AM
Thanks Gbaudart,
query perfectly working.
Please confirm the disk free space in GB ?
17 Feb 2025 08:15 PM
Hi @akashsaini,
Normally, the unit will match the magnitude of your result. You can change the unit in the query display options.