<?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 DQL to compare requested pods vs running pods ( k8s ) in DQL</title>
    <link>https://community.dynatrace.com/t5/DQL/DQL-to-compare-requested-pods-vs-running-pods-k8s/m-p/251799#M1092</link>
    <description>&lt;P&gt;I'm looking for a way to determine if requested pods is equal to the running pods for specific apps in a specific namespace on a specific Kubernetes cluster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally if running pods = 0 we throw an alert with status CRITICAL,&lt;/P&gt;
&lt;P&gt;and if we run bear minimum 1 pod ( or more ) of mentioned app we alert with status WARN, when the Running pods is less than the requested pods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind rgds,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jul 2024 07:57:58 GMT</pubDate>
    <dc:creator>PeterDrenth1</dc:creator>
    <dc:date>2024-07-29T07:57:58Z</dc:date>
    <item>
      <title>DQL to compare requested pods vs running pods ( k8s )</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-to-compare-requested-pods-vs-running-pods-k8s/m-p/251799#M1092</link>
      <description>&lt;P&gt;I'm looking for a way to determine if requested pods is equal to the running pods for specific apps in a specific namespace on a specific Kubernetes cluster.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ideally if running pods = 0 we throw an alert with status CRITICAL,&lt;/P&gt;
&lt;P&gt;and if we run bear minimum 1 pod ( or more ) of mentioned app we alert with status WARN, when the Running pods is less than the requested pods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind rgds,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 07:57:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-to-compare-requested-pods-vs-running-pods-k8s/m-p/251799#M1092</guid>
      <dc:creator>PeterDrenth1</dc:creator>
      <dc:date>2024-07-29T07:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: DQL to compare requested pods vs running pods ( k8s )</title>
      <link>https://community.dynatrace.com/t5/DQL/DQL-to-compare-requested-pods-vs-running-pods-k8s/m-p/251809#M1094</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please check the below query, this will list the desired pod and the running pods. you can modify it to make basic calculations on it, like (desired - running) and is the result is 0 so you are fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fetch dt.entity.cloud_application_instance, from: -30m&lt;BR /&gt;| fields id, pod.id = id, pod.name = entity.name, pod.desired_containers = record(desiredContainersCount),pod.running_containers = record(runningContainersCount)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Islam&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 08:20:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/DQL/DQL-to-compare-requested-pods-vs-running-pods-k8s/m-p/251809#M1094</guid>
      <dc:creator>Islam_Zedan</dc:creator>
      <dc:date>2024-07-29T08:20:24Z</dc:date>
    </item>
  </channel>
</rss>

