<?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: How to convert individual container cpu usage to DQL? in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285394#M2553</link>
    <description>&lt;P&gt;Try to add this summarize funcion to the end of the DQL and see if fits&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| summarize CPU_Requests = avg(arrayAvg(`CPU Requests %`)), by:{Name}&lt;/LI-CODE&gt;&lt;P&gt;Categorical visualization does not expect an array of values, so we need to aggregate it.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Thu, 04 Sep 2025 12:59:40 GMT</pubDate>
    <dc:creator>dannemca</dc:creator>
    <dc:date>2025-09-04T12:59:40Z</dc:date>
    <item>
      <title>How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285285#M2548</link>
      <description>&lt;P&gt;We are currently having a dashboard in gen2 UI that make use of builtin:containers.cpu.usagePercent to show not only the application pod CPU usage but also the pod count.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_0-1756879898526.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29924iBC1476732B07ADDE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_0-1756879898526.png" alt="Hillman_0-1756879898526.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;However, when I try to convert it to gen3 dashboard, it shows the metrics is no longer available and unable to convert to DQL:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_1-1756879993922.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29925i44B84F4EEC73C054/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_1-1756879993922.png" alt="Hillman_1-1756879993922.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;According to the online documentation &lt;A href="https://docs.dynatrace.com/docs/analyze-explore-automate/metrics/upgrade/kubernetes-metric-migration" target="_blank" rel="noopener"&gt;Kubernetes metrics migration guide — Dynatrace Docs&lt;/A&gt;, it shows a DQL that can be used to simulate the metrics&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;timeseries {
      // for total usage, user and system cpu usage are added
      userCpuUsage = avg(dt.containers.cpu.usage_user_time)
    , systemCpuUsage = avg(dt.containers.cpu.usage_system_time)
      // cpu logical counts are the fallback, if the throttling ratio doesn't exist
    , cpuLogicalCount = avg(dt.containers.cpu.logical_cores)
}
// filter statement ...
// leftOuter join allows the throttling ratio to be null
| join [
  timeseries {
      throttlingRatio = avg(dt.containers.cpu.throttling_ratio)
      // same filter statement as above ...
}
], on: { interval, timeframe}, fields: { throttlingRatio}, kind:leftOuter
| fieldsAdd
       // sum of system and user cpu usage
       numerator = userCpuUsage[] + systemCpuUsage[]
       // throttling ratio, or as a fallback cpu logical count.
     , denominator = coalesce(throttlingRatio, cpuLogicalCount)
     , nanoseconds_per_minute  = 60 * 1000 * 1000 * 1000
 | fields
       interval, timeframe
     , cpuUsagePercent = 100.0 * numerator[] / ( denominator[] * nanoseconds_per_minute)&lt;/LI-CODE&gt;
&lt;P&gt;I have tried with the DQL but it can only display the CPU usage percent in total. How can I revise it to display the cpu uage percent on a particular container/pod from a particular kubernetes namespace within a particular kubernetes cluster?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 08:38:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285285#M2548</guid>
      <dc:creator>Hillman</dc:creator>
      <dc:date>2025-09-03T08:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285360#M2550</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/63818"&gt;@Hillman&lt;/a&gt;&amp;nbsp;You can try the below DQL and see if it helps , this will give you the CPU percent against the limits and requests&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {
  cpu_usage = sum(dt.kubernetes.container.cpu_usage),
  requests_cpu = sum(dt.kubernetes.container.requests_cpu),
  limits_cpu = sum(dt.kubernetes.container.limits_cpu)
}, filter: {
  k8s.cluster.name == "XYZ" AND
  k8s.namespace.name == "ABC"    
  
}, by: { dt.entity.cloud_application_instance, k8s.container.name},

nonempty: true,
union: true

| fieldsAdd requests_cpu_percent = cpu_usage[] / requests_cpu[] * 100
| fieldsAdd limits_cpu_percent = cpu_usage[] / limits_cpu[] * 100

| fieldsRename `Name` = k8s.container.name, `CPU Requests %` = requests_cpu_percent, `CPU Limits %` = limits_cpu_percent&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Sep 2025 23:20:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285360#M2550</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-09-03T23:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285371#M2551</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21657"&gt;@p_devulapalli&lt;/a&gt;&amp;nbsp;I have tried with your DQL and further filter it by container name. It ends up like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_0-1756952829346.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29945i5092127D4918F8C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_0-1756952829346.png" alt="Hillman_0-1756952829346.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Which does not match the gen2 version. The x-axis becomes time period instead of CPU usage. And the y-axis only displays the contain name. This is what we use in gen2 to display the chart:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_1-1756953011053.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29946iAC14F82CE9F099D1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_1-1756953011053.png" alt="Hillman_1-1756953011053.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The DQL documentation only mention the generic language usage but does not mention what kind of types we can use. I am not sure how to filter with container group instance.&lt;/P&gt;&lt;P&gt;It also does not provide UI like the data explorer that we can choose from the drop down and do not need to learn a new language. I believe these kinds of limitations only hinter us from migrating to the new UI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 02:33:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285371#M2551</guid>
      <dc:creator>Hillman</dc:creator>
      <dc:date>2025-09-04T02:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285384#M2552</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21657"&gt;@p_devulapalli&lt;/a&gt;&amp;nbsp;I have changed the chart type from "Categorical" to "Bar Chart", only display "CPU limits%" and add in "k8s.pod.name" as the "Split by" criteria and it looks better:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_0-1756978648434.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29951i48D87054F73714C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_0-1756978648434.png" alt="Hillman_0-1756978648434.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, I have 3 things that need to archive:&lt;/P&gt;&lt;P&gt;1. I want to display the bar in horizontal instead of vertical.&lt;/P&gt;&lt;P&gt;2. I want to split the bars from the 3 pods into individual columns instead of stacked column.&lt;/P&gt;&lt;P&gt;3. I do not care about the time series. I just want to display the overall (can be average / medium / 90% percentile) CPU usage % within the said time period of the dashboard, say last 2 hours, and the number of pods.&lt;/P&gt;&lt;P&gt;How can I archive that?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 09:41:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285384#M2552</guid>
      <dc:creator>Hillman</dc:creator>
      <dc:date>2025-09-04T09:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285394#M2553</link>
      <description>&lt;P&gt;Try to add this summarize funcion to the end of the DQL and see if fits&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| summarize CPU_Requests = avg(arrayAvg(`CPU Requests %`)), by:{Name}&lt;/LI-CODE&gt;&lt;P&gt;Categorical visualization does not expect an array of values, so we need to aggregate it.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 04 Sep 2025 12:59:40 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285394#M2553</guid>
      <dc:creator>dannemca</dc:creator>
      <dc:date>2025-09-04T12:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285443#M2554</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/18264"&gt;@dannemca&lt;/a&gt;&amp;nbsp;Thank you for your suggestion! The chart now resembles to the original one we have built.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_1-1757042935673.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/29964iD551008AAD9E32CD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_1-1757042935673.png" alt="Hillman_1-1757042935673.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The DQL are now as follow:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {
  cpu_usage = sum(dt.kubernetes.container.cpu_usage),
  requests_cpu = sum(dt.kubernetes.container.requests_cpu),
  limits_cpu = sum(dt.kubernetes.container.limits_cpu)
}, filter: {
  k8s.cluster.name == "CLUSTER" AND
  k8s.namespace.name == "NAMESPACE" AND
  k8s.pod.name ~ "altcre-m*" AND
  k8s.container.name ~ "weblogic"
}, by: { k8s.pod.name, k8s.container.name},

nonempty: true,
union: true

| fieldsAdd requests_cpu_percent = cpu_usage[] / requests_cpu[] * 100
| fieldsAdd limits_cpu_percent = cpu_usage[] / limits_cpu[] * 100
| fieldsRename `Name` = k8s.pod.name, `CPU Requests %` = requests_cpu_percent, `CPU Limits %` = limits_cpu_percent
| summarize CPU_Requests = avg(arrayAvg(`CPU Requests %`)), by:{Name}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I have got 2 follow up questions. In the screenshot I have shown in the first post, the gen2 chart does put the labels (pod and container name) upon the bar itself instead of put them into the y-axis. That can help to save the space for the bar data to display. Does gen3 chart able to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another question is about the legend at the bottom. In gen2, it will show up to 3 labels and have an entry that shows there are more number of entries. In gen3, however, it only shows 1 label and it does not have the text to remind the users there are more entries. Instead, it only shows a rather non-obvious scroll bar. The bar is so near to the resize icon and it is very easy to misclick it. Is it possible to change that behaviour?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 03:30:39 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285443#M2554</guid>
      <dc:creator>Hillman</dc:creator>
      <dc:date>2025-09-05T03:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285446#M2555</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/63818"&gt;@Hillman&lt;/a&gt;&amp;nbsp;Option to display the names on to the bar on Gen3 dashboards is not possible at this time .&lt;/P&gt;&lt;P&gt;The area of legend depends on the size of the view, you might need to adjust the size of the view a bit to adjust the visibility of legend or place them on the right side instead of bottom , I know this may not show up same what you had in Gen2 , alternatively you can turn off the legend as an option&lt;/P&gt;</description>
      <pubDate>Fri, 05 Sep 2025 04:24:42 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/285446#M2555</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-09-05T04:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/286234#M2605</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21657"&gt;@p_devulapalli&lt;/a&gt;&amp;nbsp;Oh, that's too bad.&lt;/P&gt;&lt;P&gt;I have got one last question. The CPU usage % has been display up to 14 digits after decimal point. Is it possible to limit it to 1 or 2?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 02:35:54 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/286234#M2605</guid>
      <dc:creator>Hillman</dc:creator>
      <dc:date>2025-09-17T02:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/286278#M2606</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/63818"&gt;@Hillman&lt;/a&gt;&amp;nbsp;Please use Units and Formats and set the decimals accordingly&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/shortlink/visualization-chart-bar-categorical#units" target="_blank"&gt;https://docs.dynatrace.com/docs/shortlink/visualization-chart-bar-categorical#units&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p_devulapalli_0-1758109542037.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30125iE57EF98A4A72BCB5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="p_devulapalli_0-1758109542037.png" alt="p_devulapalli_0-1758109542037.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p_devulapalli_1-1758109591824.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30126i24C9948C369E5FBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="p_devulapalli_1-1758109591824.png" alt="p_devulapalli_1-1758109591824.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 11:48:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/286278#M2606</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-09-17T11:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/286553#M2612</link>
      <description>&lt;P&gt;Is there a memory usage version of the DQL that&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21657"&gt;@p_devulapalli&lt;/a&gt;&amp;nbsp; provesided for CPU?&amp;nbsp; I'd imagine not, since the kubernetes metric for memory usage appear to be non-existent.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 23:59:17 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/286553#M2612</guid>
      <dc:creator>FShimaya</dc:creator>
      <dc:date>2025-09-22T23:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/286555#M2613</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/39337"&gt;@FShimaya&lt;/a&gt;&amp;nbsp;You can have something similar for Memory too, here is a example at pod level&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {
  memory_usage = sum(dt.kubernetes.container.memory_working_set),
  requests_memory = sum(dt.kubernetes.container.requests_memory),
  limits_memory = sum(dt.kubernetes.container.limits_memory)
}, filter: {
  k8s.cluster.name == "XYZ" AND
  k8s.namespace.name == "ABC"    
  
  }, by: { dt.entity.cloud_application_instance, k8s.pod.name }

| fieldsAdd requests_memory_percent = memory_usage[] / requests_memory[] * 100
| fieldsAdd limits_memory_percent = memory_usage[] / limits_memory[] * 100&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 00:20:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/286555#M2613</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-09-23T00:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/286556#M2614</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21657"&gt;@p_devulapalli&lt;/a&gt;&amp;nbsp;.&amp;nbsp; I was worried that working_sets might not translate exactly to memory used.&amp;nbsp; For instance, if you were to compare it with the legacy memory usage (limits), the data might not match between the two.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Sep 2025 00:25:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/286556#M2614</guid>
      <dc:creator>FShimaya</dc:creator>
      <dc:date>2025-09-23T00:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/287925#M2682</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21657"&gt;@p_devulapalli&lt;/a&gt;&amp;nbsp;Apart from using the "Units and formats", is there any way we can truncate the percent decimal digits in DQL?&lt;/P&gt;&lt;P&gt;Even though the unit has been limited, the "CPU Requests" calculated still display the number in double format that leads to a very long legend label&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_0-1760517835061.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/30553i187AAB9A17CE2C39/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_0-1760517835061.png" alt="Hillman_0-1760517835061.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Oct 2025 08:44:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/287925#M2682</guid>
      <dc:creator>Hillman</dc:creator>
      <dc:date>2025-10-15T08:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/292475#M2998</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21657"&gt;@p_devulapalli&lt;/a&gt;&amp;nbsp;I have got another question. If I want to display the CPU usage in percent in the form of line chart. Is it possible to do so? I have tried but it returns that The calculated metrics does not support line chart.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jan 2026 09:20:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/292475#M2998</guid>
      <dc:creator>Hillman</dc:creator>
      <dc:date>2026-01-06T09:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/292517#M3004</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/63818"&gt;@Hillman&lt;/a&gt;&amp;nbsp;Line chart should be possible too, not sure of the DQL you are using , but something like below should work&amp;nbsp; for line chart&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {
  cpu_usage = sum(dt.kubernetes.container.cpu_usage, default: 0, rollup: sum, rate: 1m),
  requests_cpu = sum(dt.kubernetes.container.requests_cpu, default: 0, rollup: sum, rate: 1m),
  limits_cpu = sum(dt.kubernetes.container.limits_cpu, default: 0, rollup: sum, rate: 1m), nonempty: true
}, filter: {
  k8s.cluster.name == ABC AND
  k8s.namespace.name == XYZ  
  
}, by: { dt.entity.cloud_application_instance, k8s.pod.name }
| fieldsAdd requests_cpu_percent = cpu_usage[] / requests_cpu[] * 100
| fieldsAdd limits_cpu_percent = cpu_usage[] / limits_cpu[] * 100

| fieldsRename `Name` = k8s.pod.name, `CPU Usage` = cpu_usage, `CPU Requests` = requests_cpu, `CPU Requests %` = requests_cpu_percent, `CPU Limits` = limits_cpu, `CPU Limits %` = limits_cpu_percent&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 06 Jan 2026 23:35:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/292517#M3004</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2026-01-06T23:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/292520#M3005</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21657"&gt;@p_devulapalli&lt;/a&gt;&amp;nbsp;Thank you so much for your suggestion!&lt;/P&gt;&lt;P&gt;I have modified your DQL and it can display the desired data now:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries {
  cpu_usage = sum(dt.kubernetes.container.cpu_usage, default: 0, rollup: sum, rate: 1m),
  requests_cpu = sum(dt.kubernetes.container.requests_cpu, default: 0, rollup: sum, rate: 1m),
  limits_cpu = sum(dt.kubernetes.container.limits_cpu, default: 0, rollup: sum, rate: 1m), nonempty: true
}, filter: {
  k8s.namespace.name == "NAMESPACE_NAME" AND
  k8s.pod.name ~ "POD_NAME" AND
  k8s.container.name ~ "CONTAINER_NAME"
}, by: { k8s.pod.name, k8s.container.name, k8s.cluster.name }
| fieldsAdd requests_cpu_percent = cpu_usage[] / requests_cpu[] * 100
| fieldsAdd limits_cpu_percent = cpu_usage[] / limits_cpu[] * 100
| fieldsRename `Name` = k8s.pod.name, `CPU Usage` = cpu_usage, `CPU Requests` = requests_cpu, `CPU Requests %` = requests_cpu_percent, `CPU Limits` = limits_cpu, `CPU Limits %` = limits_cpu_percent&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_0-1767768461516.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31421iF0801CE31D35300E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_0-1767768461516.png" alt="Hillman_0-1767768461516.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That means it is the "summarize" phrase that hinder the use of line chart.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jan 2026 06:48:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/292520#M3005</guid>
      <dc:creator>Hillman</dc:creator>
      <dc:date>2026-01-07T06:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert individual container cpu usage to DQL?</title>
      <link>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/292638#M3009</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21657"&gt;@p_devulapalli&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/39337"&gt;@FShimaya&lt;/a&gt;&amp;nbsp;yup, I have encountered the same issue as well. The old gen2 memory usage percent seems to be lowered than that of working_sets. Also, the working_sets does not reflect the rising trend of the memory usage:&lt;/P&gt;&lt;P&gt;Gen2 (memory usage percent)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_0-1767853430306.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31461i288A4F8073AA91E1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_0-1767853430306.png" alt="Hillman_0-1767853430306.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Gen3 (memory usage calculated by memory_working_sets / memory limits * 100)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Hillman_1-1767853469415.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/31462i77CA36477C502FDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Hillman_1-1767853469415.png" alt="Hillman_1-1767853469415.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jan 2026 06:26:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/How-to-convert-individual-container-cpu-usage-to-DQL/m-p/292638#M3009</guid>
      <dc:creator>Hillman</dc:creator>
      <dc:date>2026-01-08T06:26:33Z</dc:date>
    </item>
  </channel>
</rss>

