<?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 get workloads based on parameter cluster and namespace in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-to-get-workloads-based-on-parameter-cluster-and-namespace/m-p/285601#M2574</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 that worked.&lt;/P&gt;</description>
    <pubDate>Tue, 09 Sep 2025 08:12:07 GMT</pubDate>
    <dc:creator>vchitti</dc:creator>
    <dc:date>2025-09-09T08:12:07Z</dc:date>
    <item>
      <title>DQL to get workloads based on parameter cluster and namespace</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-to-get-workloads-based-on-parameter-cluster-and-namespace/m-p/285584#M2568</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I have created two variables&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Cluster:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;fetch dt.entity.kubernetes_cluster&lt;BR /&gt;| fields entity.name&lt;BR /&gt;| sort entity.name asc&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Namespace:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;fetch dt.entity.cloud_application_namespace&lt;BR /&gt;| fields id, name = entity.name&lt;BR /&gt;// show only namespaces in the selected cluster&lt;BR /&gt;| filter in(id, classicEntitySelector(concat("type(CLOUD_APPLICATION_NAMESPACE),toRelationship.isClusterOfNamespace(type(KUBERNETES_CLUSTER),entityName.equals(", &lt;STRONG&gt;$Cluster&lt;/STRONG&gt;, "))")))&lt;BR /&gt;| fields name&lt;BR /&gt;| sort name asc&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the above parameters Cluster and Namespace I need to get workloads.&lt;/P&gt;&lt;P&gt;Below query returns all deployments, I need to filter based on above cluster and namespace&lt;/P&gt;&lt;P&gt;fetch dt.entity.cloud_application&lt;BR /&gt;| fields entity.name&lt;BR /&gt;| dedup entity.name&lt;/P&gt;&lt;P&gt;Can you please guide me. Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2025 21:56:43 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-to-get-workloads-based-on-parameter-cluster-and-namespace/m-p/285584#M2568</guid>
      <dc:creator>vchitti</dc:creator>
      <dc:date>2025-09-08T21:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: DQL to get workloads based on parameter cluster and namespace</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-to-get-workloads-based-on-parameter-cluster-and-namespace/m-p/285586#M2570</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/95332"&gt;@vchitti&lt;/a&gt;&amp;nbsp;Please try below&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.cloud_application
| fieldsAdd
  clusterId = clustered_by[dt.entity.kubernetes_cluster],
  k8s.namespace.name = namespaceName
| lookup [fetch dt.entity.kubernetes_cluster
| fieldsAdd kubernetesClusterId, entity.name
], sourceField:clusterId, lookupField:id, fields:{k8s.cluster.name=entity.name}
|filter  {
  k8s.cluster.name == $Cluster AND
  k8s.namespace.name == $Namespace }&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 09 Sep 2025 00:23:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-to-get-workloads-based-on-parameter-cluster-and-namespace/m-p/285586#M2570</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-09-09T00:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: DQL to get workloads based on parameter cluster and namespace</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-to-get-workloads-based-on-parameter-cluster-and-namespace/m-p/285601#M2574</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 that worked.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2025 08:12:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-to-get-workloads-based-on-parameter-cluster-and-namespace/m-p/285601#M2574</guid>
      <dc:creator>vchitti</dc:creator>
      <dc:date>2025-09-09T08:12:07Z</dc:date>
    </item>
  </channel>
</rss>

