Hi Everyone. I’m trying to create a dashboard with a top 20 list of servers that consume the most disk space. I’m using this DQL, but it’s not working. I think it’s because I don’t have the dt.host.disk.total metric. So, which one can I use? What do you recommend?
timeseries {used=avg(dt.host.disk.used), total=avg(dt.host.disk.total)}, by:{dt.host.name,dt.host.disk.name}
| fieldsAdd capacidad=arrayAvg(total), usado=arrayAvg(used)
| fieldsAdd Porcentaje_Usado=(usado*100)/capacidad
| sort Porcentaje_Usado desc
| fieldsRename Host=dt.host.name, Disco=dt.host.disk.name
| fields Host, Disco, capacidad, usado, Porcentaje_Usado
| limit 20
Any idea ?





