<?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: Kubernetes Alerting in Alerting</title>
    <link>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262720#M5076</link>
    <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/57336"&gt;@Vikas_g1997&lt;/a&gt;&amp;nbsp;- You can make use of the&amp;nbsp;builtin:kubernetes.container.restarts as well, below should give you the container restart count&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builtin:kubernetes.container.restarts:splitBy(k8s.namespace.name,k8s.workload.kind,k8s.workload.name):sum:default(0.0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at the below doc&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/platform-modules/infrastructure-monitoring/container-platform-monitoring/kubernetes-monitoring/alert-on-kubernetes-issues#workload-metric-dql-expressions" target="_blank"&gt;https://docs.dynatrace.com/docs/platform-modules/infrastructure-monitoring/container-platform-monitoring/kubernetes-monitoring/alert-on-kubernetes-issues#workload-metric-dql-expressions&lt;/A&gt;&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="p_devulapalli_0-1731840483459.png" style="width: 688px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24635i0CE84335E5BBF939/image-dimensions/688x145?v=v2" width="688" height="145" role="button" title="p_devulapalli_0-1731840483459.png" alt="p_devulapalli_0-1731840483459.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 17 Nov 2024 10:48:45 GMT</pubDate>
    <dc:creator>p_devulapalli</dc:creator>
    <dc:date>2024-11-17T10:48:45Z</dc:date>
    <item>
      <title>Kubernetes Alerting</title>
      <link>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262393#M5067</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;We have a customer requirement to set up alerting for specific Kubernetes lifecycle events. Specifically, we need alerts for:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Lifecycle events such as &lt;STRONG&gt;pending&lt;/STRONG&gt;, &lt;STRONG&gt;running&lt;/STRONG&gt;, or &lt;STRONG&gt;successful&lt;/STRONG&gt; state changes.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Scaling events&lt;/STRONG&gt; or &lt;STRONG&gt;pod restarts/failures&lt;/STRONG&gt; with the ability to isolate or find logs just before these events.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I've reviewed the documentation but couldn’t find relevant metrics for these lifecycle states in Dynatrace. Could anyone please advise if there’s a way to achieve this, or suggest any alternative approach?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Apr 2025 06:51:12 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262393#M5067</guid>
      <dc:creator>Vikas_g1997</dc:creator>
      <dc:date>2025-04-14T06:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes Alerting</title>
      <link>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262403#M5068</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/57336"&gt;@Vikas_g1997&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the raised points:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Lifecycle events such as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;pending&lt;/STRONG&gt;,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;running&lt;/STRONG&gt;, or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;successful&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;state changes.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Scaling events&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;pod restarts/failures&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;with the ability to isolate or find logs just before these events.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Suggestion:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Setup&amp;nbsp;Issue-tracking for releases under cloud automation and connect the target K8s endpoint.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Proceed with metric events either through the metric key or selector.&lt;/LI&gt;&lt;LI&gt;Alerting related concerns customize the anomaly detection for cluster, namespace, workload.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-11-14_13h38_11.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24571i45C4689A52E8C67B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-11-14_13h38_11.png" alt="2024-11-14_13h38_11.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-11-14_13h39_32.png" style="width: 919px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24574iE0EE19D5634E256C/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-11-14_13h39_32.png" alt="2024-11-14_13h39_32.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-11-14_13h40_51.png" style="width: 881px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24572iB17E03278F5E7218/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-11-14_13h40_51.png" alt="2024-11-14_13h40_51.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-11-14_13h50_07.png" style="width: 884px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24573i2D5CF75F61C0C12E/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-11-14_13h50_07.png" alt="2024-11-14_13h50_07.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-11-14_13h51_07.png" style="width: 914px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24575i61FEAAC3F9334D69/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-11-14_13h51_07.png" alt="2024-11-14_13h51_07.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any event will be triggered will be displayed through the monitored entity UI and you create the required alerting based on the event details / Logs&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hoping it helps.&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 09:54:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262403#M5068</guid>
      <dc:creator>Peter_Youssef</dc:creator>
      <dc:date>2024-11-14T09:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes Alerting</title>
      <link>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262425#M5069</link>
      <description>&lt;P&gt;You can also create a custom alert via the Settings&amp;gt;Anomaly Detection&amp;gt;Metric Events and toss in your metric selector for the Data Explorer. Granted my example is looking at all phases but you can take that and adjust it as you see fit to be as specific or as generic as desired for alerting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ChadTurner_0-1731588405308.png" style="width: 999px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24584i26429539444F23F1/image-size/large?v=v2&amp;amp;px=999" role="button" title="ChadTurner_0-1731588405308.png" alt="ChadTurner_0-1731588405308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Rule of thumb is if you can make it in the Data Explorer, you can make it alert by way of metric events. There is also the Davis Anomaly Detector that you can leverage if you have shifted to the new Dynatrace Layout.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 12:48:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262425#M5069</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2024-11-14T12:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes Alerting</title>
      <link>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262714#M5073</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;Thank you for your valuable input.&lt;/P&gt;&lt;P&gt;As per the customer's requirements, they are looking for alerts related to Pod restarts and the series of events that triggered these restarts. However, upon checking, I couldn't find a specific metric directly related to Pod restarts. Could you please suggest how we can achieve this monitoring effectively?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2024 07:40:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262714#M5073</guid>
      <dc:creator>Vikas_g1997</dc:creator>
      <dc:date>2024-11-17T07:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes Alerting</title>
      <link>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262720#M5076</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/57336"&gt;@Vikas_g1997&lt;/a&gt;&amp;nbsp;- You can make use of the&amp;nbsp;builtin:kubernetes.container.restarts as well, below should give you the container restart count&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builtin:kubernetes.container.restarts:splitBy(k8s.namespace.name,k8s.workload.kind,k8s.workload.name):sum:default(0.0)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at the below doc&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/platform-modules/infrastructure-monitoring/container-platform-monitoring/kubernetes-monitoring/alert-on-kubernetes-issues#workload-metric-dql-expressions" target="_blank"&gt;https://docs.dynatrace.com/docs/platform-modules/infrastructure-monitoring/container-platform-monitoring/kubernetes-monitoring/alert-on-kubernetes-issues#workload-metric-dql-expressions&lt;/A&gt;&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="p_devulapalli_0-1731840483459.png" style="width: 688px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24635i0CE84335E5BBF939/image-dimensions/688x145?v=v2" width="688" height="145" role="button" title="p_devulapalli_0-1731840483459.png" alt="p_devulapalli_0-1731840483459.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2024 10:48:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262720#M5076</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2024-11-17T10:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes Alerting</title>
      <link>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262721#M5077</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/21657"&gt;@p_devulapalli&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Thank you so much for the suggestion; I really appreciate it. However, I have a doubt—are Pod restarts and container restarts the same? Also, is there a way to identify the series of events that triggered these restarts?&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2024 11:11:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262721#M5077</guid>
      <dc:creator>Vikas_g1997</dc:creator>
      <dc:date>2024-11-17T11:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes Alerting</title>
      <link>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262732#M5080</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/57336"&gt;@Vikas_g1997&lt;/a&gt;&amp;nbsp;, though there is some relationship between &lt;SPAN&gt;pod restarts and container restarts&amp;nbsp;,&lt;/SPAN&gt;&amp;nbsp;they are not the same (one pod might have multiple containers) , but there is no direct metric to alert on pod restart that I know of. One way of explaining it is&amp;nbsp;when we say a pod restarts in Kubernetes the existing pod’s containers are restarted according to the pod’s restart policy, so there is a bit of correlation between pod and container restarts&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pod events can be viewed from under the even events tab if you are using the kubernetes app . The events written here are similar to what you would see in events when you do a kubectl describe pods as an example .&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p_devulapalli_1-1731884877828.png" style="width: 478px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/24638iB555CD22BEF36C63/image-dimensions/478x255?v=v2" width="478" height="255" role="button" title="p_devulapalli_1-1731884877828.png" alt="p_devulapalli_1-1731884877828.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2024 23:25:58 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/262732#M5080</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2024-11-17T23:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes Alerting</title>
      <link>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/274917#M5572</link>
      <description>&lt;P&gt;Hello Phani, thanks for the details notes. Wondering if there's an opportunity to setup an alert based on the pod not switching from "initialized" state to "Ready" state. So that, we will get&amp;nbsp; a count of how many number of time pods not switched here. Pls advise. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 10 Apr 2025 23:45:15 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/274917#M5572</guid>
      <dc:creator>ve00685603</dc:creator>
      <dc:date>2025-04-10T23:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Kubernetes Alerting</title>
      <link>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/274928#M5573</link>
      <description>&lt;P&gt;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/3851"&gt;@ve00685603&lt;/a&gt;&amp;nbsp;You might want to take a look at the&amp;nbsp; "&lt;SPAN&gt;currentCondition" field which seems to include some information you are after and see if it helps when setting up the alerts&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="p_devulapalli_0-1744337031231.png" style="width: 491px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/27501i2A23D129EB7DB14F/image-dimensions/491x43?v=v2" width="491" height="43" role="button" title="p_devulapalli_0-1744337031231.png" alt="p_devulapalli_0-1744337031231.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fetch dt.entity.cloud_application_instance
| fieldsAdd lifetime,nodeName,desiredContainersCount,entity.type,runningContainersCount,entity.detected_name,id,namespaceName,internalIpAddresses,containerRestartCount,currentCondition,workloadName&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Apr 2025 02:04:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Alerting/Kubernetes-Alerting/m-p/274928#M5573</guid>
      <dc:creator>p_devulapalli</dc:creator>
      <dc:date>2025-04-11T02:04:29Z</dc:date>
    </item>
  </channel>
</rss>

