<?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 timeseries: aggregate data based on lookup fields in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/220805#M204</link>
    <description>&lt;P&gt;Thanks for the additional information, this will be possible with an enhancement that will be delivered this year. I will revert with the syntax once it is made available.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Aug 2023 15:02:16 GMT</pubDate>
    <dc:creator>fcourbon</dc:creator>
    <dc:date>2023-08-16T15:02:16Z</dc:date>
    <item>
      <title>DQL timeseries: aggregate data based on lookup fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/220633#M200</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to group a timeseries based on new fields I fetch after a lookup.&lt;/P&gt;&lt;P&gt;So basically, I'm fetching a timeseries (here dt.kubernetes.node_conditions). Then, I lookup the kubernetes nodes to get a specific label and the managementZone.&lt;/P&gt;&lt;P&gt;After that, I would like to group the timeseries based on this label and the management zone.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries avg(dt.kubernetes.node.conditions), by:{dt.entity.kubernetes_node}, interval: 10m
| lookup [fetch dt.entity.kubernetes_node], sourceField:dt.entity.kubernetes_node, lookupField:id
| fieldsAdd node_type = lookup.kubernetesLabels[`kube/nodetype`], managementZone = lookup.managementZones&lt;/LI-CODE&gt;&lt;P&gt;I didn't find a way to group the timeseries avg(dt.kubernetes.node.conditions) based on these new fields.&lt;/P&gt;&lt;P&gt;Is it something possible ?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 21:11:37 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/220633#M200</guid>
      <dc:creator>Adrien_Z</dc:creator>
      <dc:date>2023-08-14T21:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: DQL timeseries: aggregate data based on lookup fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/220729#M202</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/62507"&gt;@Adrien_Z&lt;/a&gt;&amp;nbsp;, what kind of output are you expecting ? A time series or a single scalar per node_type (or managementZone)?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 09:30:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/220729#M202</guid>
      <dc:creator>fcourbon</dc:creator>
      <dc:date>2023-08-16T09:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: DQL timeseries: aggregate data based on lookup fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/220757#M203</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want a time series per node_type that will represent the sum of the timeseries of all nodes having this node_type.&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;node |avg(dt.kubernetes.node.condition)|node_type
nodeA|1,1,,,1 |typeA
nodeB|,1,1,1, |typeA

Result: --&amp;gt;
node_type|avg(dt.kubernetes.node.condition)
typeA    |1,2,2,1,1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you need more information&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 12:24:02 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/220757#M203</guid>
      <dc:creator>Adrien_Z</dc:creator>
      <dc:date>2023-08-16T12:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: DQL timeseries: aggregate data based on lookup fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/220805#M204</link>
      <description>&lt;P&gt;Thanks for the additional information, this will be possible with an enhancement that will be delivered this year. I will revert with the syntax once it is made available.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2023 15:02:16 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/220805#M204</guid>
      <dc:creator>fcourbon</dc:creator>
      <dc:date>2023-08-16T15:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: DQL timeseries: aggregate data based on lookup fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/220956#M207</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Thank you for the information.&lt;/P&gt;&lt;P&gt;I'll wait for the update of this tread&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 17:44:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/220956#M207</guid>
      <dc:creator>Adrien_Z</dc:creator>
      <dc:date>2023-08-17T17:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: DQL timeseries: aggregate data based on lookup fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/239515#M709</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would need this feature too. Since 2023 is over, is it possible now to do so?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2024 15:24:33 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/239515#M709</guid>
      <dc:creator>Tommaso_Fin</dc:creator>
      <dc:date>2024-03-11T15:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: DQL timeseries: aggregate data based on lookup fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/239669#M719</link>
      <description>&lt;P&gt;It is possible right now. Using the initial example it would look like time:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;timeseries cond=avg(dt.kubernetes.node.conditions), by:{dt.entity.kubernetes_node}, interval: 10m
| lookup [fetch dt.entity.kubernetes_node], sourceField:dt.entity.kubernetes_node, lookupField:id
| fieldsAdd node_type = lookup.kubernetesLabels[`kube/nodetype`], managementZone = lookup.managementZones
| summarize {cond=sum(cond[])}, by:{node_type, managementZone, interval, timeframe}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Kris&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 18:40:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/239669#M719</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-03-12T18:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: DQL timeseries: aggregate data based on lookup fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/239779#M726</link>
      <description>&lt;P&gt;Thanks, it work fine, even if I would never find the solution without your help. The sintax is not really simple&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 13:24:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/239779#M726</guid>
      <dc:creator>Tommaso_Fin</dc:creator>
      <dc:date>2024-03-13T13:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: DQL timeseries: aggregate data based on lookup fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/239783#M727</link>
      <description>&lt;P&gt;For future reference:&lt;BR /&gt;&lt;A href="https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/commands/aggregation-commands#summarize" target="_blank"&gt;https://docs.dynatrace.com/docs/platform/grail/dynatrace-query-language/commands/aggregation-commands#summarize&lt;/A&gt;&lt;BR /&gt;Example 6&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 13:42:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/239783#M727</guid>
      <dc:creator>krzysztof_hoja</dc:creator>
      <dc:date>2024-03-13T13:42:47Z</dc:date>
    </item>
    <item>
      <title>Re: DQL timeseries: aggregate data based on lookup fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/239797#M728</link>
      <description>&lt;P&gt;Thank you. It is working now and thanks for the example.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 14:48:30 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/239797#M728</guid>
      <dc:creator>Adrien_Z</dc:creator>
      <dc:date>2024-03-13T14:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: DQL timeseries: aggregate data based on lookup fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/281858#M2339</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;thanks for the example, it helped me in parts.&lt;BR /&gt;Seems the result above comes in a table. Is there any way to timeseries the data again?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 13:50:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/281858#M2339</guid>
      <dc:creator>m_zol</dc:creator>
      <dc:date>2025-07-18T13:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: DQL timeseries: aggregate data based on lookup fields</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/281860#M2340</link>
      <description>&lt;P&gt;Nevermind, with the example provided did work. I don't know the reason it was not working before.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jul 2025 14:51:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-timeseries-aggregate-data-based-on-lookup-fields/m-p/281860#M2340</guid>
      <dc:creator>m_zol</dc:creator>
      <dc:date>2025-07-18T14:51:23Z</dc:date>
    </item>
  </channel>
</rss>

