<?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 Monitor time pods spent in a phase in Container platforms</title>
    <link>https://community.dynatrace.com/t5/Container-platforms/Monitor-time-pods-spent-in-a-phase/m-p/258038#M2675</link>
    <description>&lt;P&gt;Is there a way to monitor the time a pod spent in a specific phase, say time spent in Pending phase? A team in our company recently got an issue where a pod was stuck in the pending phase. They want to see if there is a built-in metric to know this and create an alert. I've browsed this forum and other sites but can't find something that serves this purpose. Please advise on whether this is possible.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2024 15:17:50 GMT</pubDate>
    <dc:creator>marceloss1</dc:creator>
    <dc:date>2024-10-03T15:17:50Z</dc:date>
    <item>
      <title>Monitor time pods spent in a phase</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Monitor-time-pods-spent-in-a-phase/m-p/258038#M2675</link>
      <description>&lt;P&gt;Is there a way to monitor the time a pod spent in a specific phase, say time spent in Pending phase? A team in our company recently got an issue where a pod was stuck in the pending phase. They want to see if there is a built-in metric to know this and create an alert. I've browsed this forum and other sites but can't find something that serves this purpose. Please advise on whether this is possible.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 15:17:50 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Monitor-time-pods-spent-in-a-phase/m-p/258038#M2675</guid>
      <dc:creator>marceloss1</dc:creator>
      <dc:date>2024-10-03T15:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor time pods spent in a phase</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Monitor-time-pods-spent-in-a-phase/m-p/258049#M2676</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/81521"&gt;@marceloss1&lt;/a&gt; ,&lt;BR /&gt;You can get the pods with pending state as detailed &lt;A href="https://community.dynatrace.com/t5/Dashboarding/Get-pending-pods-by-pod-names/m-p/218539" target="_self"&gt;here.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builtin:kubernetes.pods:filter(and(or(eq(pod_status,Pending)))):splitBy("k8s.pod.name"):sort(value(auto,descending)):limit(20)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this doesn't work for you, you can just search with 'builtin:kubernetes.pods' in Data Explorer and then split by whatever suits you from those results. Also there's a filter there for "Pending", could be you have none pending, try Running instead and see if it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Filtering for pod status (In this case Pending) will allow you to track and potentially set up alerts for pods that remain in the Pending state. Although I don't think (someone correct me if I'm wrong) that Dynatrace has a direct metric for time spent in a phase, you could always explore the option of creating custom alerts based on how long a pod remains Pending by combining this metric with a custom alert logic that triggers if the pod stays in this state beyond a certain duration.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if this helps you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 16:06:23 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Monitor-time-pods-spent-in-a-phase/m-p/258049#M2676</guid>
      <dc:creator>PedroSantos</dc:creator>
      <dc:date>2024-10-03T16:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Monitor time pods spent in a phase</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Monitor-time-pods-spent-in-a-phase/m-p/259224#M2706</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the suggestion, right now we are testing something like you mentioned and we are positive it'll work for the other teams. Thanks for getting me on the right path.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2024 20:31:41 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Monitor-time-pods-spent-in-a-phase/m-p/259224#M2706</guid>
      <dc:creator>marceloss1</dc:creator>
      <dc:date>2024-10-14T20:31:41Z</dc:date>
    </item>
  </channel>
</rss>

