<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DQL to list on a dashboard only local drives disk.used.percent in Dashboarding</title>
    <link>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/277932#M5114</link>
    <description>&lt;P&gt;Gerald,&amp;nbsp; thanks,&amp;nbsp; this will work for my case.&amp;nbsp; I see in my environment that the data is ok for hosts with newer Dynatrace agents, but older agents like 1.297 and below show as null.&amp;nbsp; Thanks for the recommendations.&lt;/P&gt;</description>
    <pubDate>Fri, 23 May 2025 15:21:52 GMT</pubDate>
    <dc:creator>mrigau</dc:creator>
    <dc:date>2025-05-23T15:21:52Z</dc:date>
    <item>
      <title>DQL to Display Local Disk Usage on Dashboards (Windows &amp; Linux)</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/277743#M5101</link>
      <description>&lt;P&gt;What is the best way to create a DQL code that lists the local host disk space used for Windows and Linux servers?&amp;nbsp; I need only the local physical disk, not to show the mapped network drives.&amp;nbsp; I'm using this code, and it shows local and network drives. Not sure how to filter for local drives only.&amp;nbsp; Any recommendations?&amp;nbsp; Thanks:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;timeseries { Used = avg(dt.host.disk.used.percent), Disk_Used = avg(dt.host.disk.used.percent, scalar: true) }, by: { dt.entity.host, dt.entity.disk },&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; filter: {&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; matchesValue(entityAttr(dt.entity.host, "tags"), array($ManagementZone)) and&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; in(entityAttr(dt.entity.host, "osType"), array($OS))&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; }&lt;/DIV&gt;
&lt;DIV&gt;| lookup&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;[fetch dt.entity.host&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; | fieldsAdd entity.name&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;], sourceField:dt.entity.host, lookupField:id&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;| fieldsAdd disk.name = entityName(dt.entity.disk)&lt;/DIV&gt;
&lt;DIV&gt;| fieldsRename&amp;nbsp; Server = lookup.entity.name&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;| sort Disk_Used desc&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Nov 2025 11:52:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/277743#M5101</guid>
      <dc:creator>mrigau</dc:creator>
      <dc:date>2025-11-14T11:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: DQL to list on a dashboard only local drives disk.used.percent</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/277746#M5102</link>
      <description>&lt;P&gt;I don't think there is a dedicated entity attribute to distinguish between local and network drives. This means you may have to filter at the end of the query based on some sort of name pattern that would match local drives and not network drives. Is there a specific pattern in how local drives are named when compared to network drives that you could filter on?&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 22:28:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/277746#M5102</guid>
      <dc:creator>marco_irmer</dc:creator>
      <dc:date>2025-05-21T22:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: DQL to list on a dashboard only local drives disk.used.percent</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/277750#M5103</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67787"&gt;@mrigau&lt;/a&gt;&amp;nbsp;If your network drives have a format something like "\\NAME\SOFTWARE" you can add filter to exclude . Below is an example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries { avg(dt.host.disk.used.percent), value.A = avg(dt.host.disk.used.percent, scalar: true) }, by: { host.name, dt.entity.disk }, filter: { NOT matchesValue(entityAttr(dt.entity.disk, "entity.name"), "\\*") }
| fieldsAdd dt.entity.disk.name = entityName(dt.entity.disk)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 May 2025 00:03:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/277750#M5103</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-05-22T00:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: DQL to list on a dashboard only local drives disk.used.percent</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/277874#M5112</link>
      <description>&lt;P&gt;What about this metric?:&amp;nbsp;&amp;nbsp;storage.disk.fstype&lt;BR /&gt;I can probably filter by the type of Linux disk to get this done.&amp;nbsp; How can I incorporate a lookup to read this disk type?&lt;/P&gt;</description>
      <pubDate>Thu, 22 May 2025 22:42:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/277874#M5112</guid>
      <dc:creator>mrigau</dc:creator>
      <dc:date>2025-05-22T22:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: DQL to list on a dashboard only local drives disk.used.percent</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/277886#M5113</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;You can try adding the 'filesystemType' and then filter on it :&lt;/P&gt;&lt;LI-CODE lang="python"&gt;timeseries { avg(dt.host.disk.used.percent), value.A = avg(dt.host.disk.used.percent, scalar: true) }, by: { host.name, dt.entity.disk }, filter: { NOT matchesValue(entityAttr(dt.entity.disk, "entity.name"), "\\*") }
| fieldsAdd dt.entity.disk.name = entityName(dt.entity.disk), fstype = entityAttr(dt.entity.disk, "filesystemType")&lt;/LI-CODE&gt;&lt;P&gt;I've tried it out on my tenant, it seems to work for some OS and fs type but also got a lot of &lt;EM&gt;null&lt;/EM&gt; values...&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 06:58:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/277886#M5113</guid>
      <dc:creator>GerardJ</dc:creator>
      <dc:date>2025-05-23T06:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: DQL to list on a dashboard only local drives disk.used.percent</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/277932#M5114</link>
      <description>&lt;P&gt;Gerald,&amp;nbsp; thanks,&amp;nbsp; this will work for my case.&amp;nbsp; I see in my environment that the data is ok for hosts with newer Dynatrace agents, but older agents like 1.297 and below show as null.&amp;nbsp; Thanks for the recommendations.&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 15:21:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/277932#M5114</guid>
      <dc:creator>mrigau</dc:creator>
      <dc:date>2025-05-23T15:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: DQL to list on a dashboard only local drives disk.used.percent</title>
      <link>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/289544#M5493</link>
      <description>&lt;DIV&gt;I know this thread is a bit old, but I was runnig on some problem. I found an attibute "remoteDiskId" in dt.entity.disk dimension, which is null when disk is local. Checked against many cenarius and worked fine.&lt;BR /&gt;Here my query for a Donut visualization:&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;timeseries { dskUsed = max(dt.host.disk.used,&amp;nbsp; scalar: true),&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;dskFree = max(dt.host.disk.avail, scalar: true) },&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; interval: 1m, by: {&amp;nbsp; dt.entity.host, dt.entity.disk }&lt;/DIV&gt;&lt;DIV&gt;| fieldsAdd Disco = entityName(dt.entity.disk),&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;remoteDiskId = entityAttr(dt.entity.disk, "remoteDiskId")&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;| lookup [fetch dt.entity.host | expand managementZones&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | fields id, managementZones, dt.entity.vmware_datacenter = asString( belongs_to[dt.entity.vmware_datacenter] )&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | fieldsAdd DC = entityName( dt.entity.vmware_datacenter )&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | filter DC == "DCDF" or DC == "DCSP"&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;], sourceField:dt.entity.host, lookupField:id, prefix:"mz."&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;| filter mz.managementZones == $Filtro&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;and (mz.DC == "DCDF" or mz.DC == "DCSP")&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;STRONG&gt;and isNull(remoteDiskId)&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;| fieldsRemove mz.id, mz.dt.entity.vmware_datacenter, dt.entity.host, interval, timeframe&lt;/DIV&gt;&lt;DIV&gt;| summarize a=sum(dskUsed), b=sum(dskFree)&lt;/DIV&gt;&lt;DIV&gt;| fieldsAdd c=array( array("Usado", a), array("Livre", b)) | fieldsRemove a, b | expand c&lt;/DIV&gt;&lt;DIV&gt;| fields Tipo=c[0], Valor=c[1]&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Nov 2025 14:35:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dashboarding/DQL-to-Display-Local-Disk-Usage-on-Dashboards-Windows-amp-Linux/m-p/289544#M5493</guid>
      <dc:creator>rguardiola</dc:creator>
      <dc:date>2025-11-13T14:35:15Z</dc:date>
    </item>
  </channel>
</rss>

