<?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: Metrics discrepancy in Container platforms</title>
    <link>https://community.dynatrace.com/t5/Container-platforms/Metrics-discrepancy/m-p/256526#M2633</link>
    <description>&lt;P&gt;I think the difference between the two metrics is to do with the scope&amp;nbsp;containers.cpu.usageMilliCores is specific to individual container CPU usage and kubernetes.workload.cpu_usage provides aggregate of CPU usage of all containers/pods within a specific Kubernetes workload.&lt;/P&gt;&lt;P&gt;A workload might contain a single container or multiple containers/pods, in your case how many containers do you have part of the workload you are trying to compare the CPU util?&lt;/P&gt;</description>
    <pubDate>Fri, 20 Sep 2024 00:30:31 GMT</pubDate>
    <dc:creator>p_devulapalli</dc:creator>
    <dc:date>2024-09-20T00:30:31Z</dc:date>
    <item>
      <title>Metrics discrepancy</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Metrics-discrepancy/m-p/256462#M2632</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've noticed that the following two metrics have some discrepancies. The first one is the CPU usage of all the containers `&lt;SPAN&gt;builtin:containers.cpu.usageMilliCores&lt;/SPAN&gt;` of a workload summed up. It's the default query used in the workload dashboard.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The latter one is the cpu_used metric `&lt;SPAN&gt;builtin:kubernetes.workload.cpu_usage&lt;/SPAN&gt;` directly defined on the workload.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are two strange behaviors:&lt;BR /&gt;&amp;nbsp;- The time series are almost equal (but almost)&lt;/P&gt;&lt;P&gt;&amp;nbsp;- The latter one seems shifted 1 minutes ahead.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gibilisco_0-1726738542739.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/22665iEF67C96CD62F9FB1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gibilisco_0-1726738542739.png" alt="Gibilisco_0-1726738542739.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;What might be the cause?&amp;nbsp;&lt;BR /&gt;This example is taken from a deployment with 4 pods, there might be more complex cases in which the difference is more significant.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2024 09:39:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Metrics-discrepancy/m-p/256462#M2632</guid>
      <dc:creator>Gibilisco</dc:creator>
      <dc:date>2024-09-19T09:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Metrics discrepancy</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Metrics-discrepancy/m-p/256526#M2633</link>
      <description>&lt;P&gt;I think the difference between the two metrics is to do with the scope&amp;nbsp;containers.cpu.usageMilliCores is specific to individual container CPU usage and kubernetes.workload.cpu_usage provides aggregate of CPU usage of all containers/pods within a specific Kubernetes workload.&lt;/P&gt;&lt;P&gt;A workload might contain a single container or multiple containers/pods, in your case how many containers do you have part of the workload you are trying to compare the CPU util?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2024 00:30:31 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Metrics-discrepancy/m-p/256526#M2633</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2024-09-20T00:30:31Z</dc:date>
    </item>
  </channel>
</rss>

