<?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 Is it possible to container restarts for a CONTAINER_GROUP_INSTANCE? in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-to-container-restarts-for-a-CONTAINER-GROUP/m-p/227644#M2745</link>
    <description>&lt;P&gt;I can grab a bunch of container statistics for CONTAINER_GROUP_INSTANCES easily, but I am trying to get &lt;STRONG&gt;container restarts for a container group instance&amp;nbsp;&lt;/STRONG&gt;in a given namespace.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do this? Am I mixing apples and oranges here?&lt;/P&gt;&lt;P&gt;Any advice appreciated.&lt;/P&gt;&lt;P&gt;Lou&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 16:56:47 GMT</pubDate>
    <dc:creator>crabbylou</dc:creator>
    <dc:date>2023-11-03T16:56:47Z</dc:date>
    <item>
      <title>Is it possible to container restarts for a CONTAINER_GROUP_INSTANCE?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-to-container-restarts-for-a-CONTAINER-GROUP/m-p/227644#M2745</link>
      <description>&lt;P&gt;I can grab a bunch of container statistics for CONTAINER_GROUP_INSTANCES easily, but I am trying to get &lt;STRONG&gt;container restarts for a container group instance&amp;nbsp;&lt;/STRONG&gt;in a given namespace.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to do this? Am I mixing apples and oranges here?&lt;/P&gt;&lt;P&gt;Any advice appreciated.&lt;/P&gt;&lt;P&gt;Lou&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 16:56:47 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-to-container-restarts-for-a-CONTAINER-GROUP/m-p/227644#M2745</guid>
      <dc:creator>crabbylou</dc:creator>
      <dc:date>2023-11-03T16:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to container restarts for a CONTAINER_GROUP_INSTANCE?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-to-container-restarts-for-a-CONTAINER-GROUP/m-p/227647#M2746</link>
      <description>&lt;P&gt;Do you want to perform a reboot or display information about restarts on your environments?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 17:31:38 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-to-container-restarts-for-a-CONTAINER-GROUP/m-p/227647#M2746</guid>
      <dc:creator>radek_jasinski</dc:creator>
      <dc:date>2023-11-03T17:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to container restarts for a CONTAINER_GROUP_INSTANCE?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-to-container-restarts-for-a-CONTAINER-GROUP/m-p/227649#M2747</link>
      <description>&lt;P&gt;Display the number of restarts per time interval.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 17:59:28 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-to-container-restarts-for-a-CONTAINER-GROUP/m-p/227649#M2747</guid>
      <dc:creator>crabbylou</dc:creator>
      <dc:date>2023-11-03T17:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to container restarts for a CONTAINER_GROUP_INSTANCE?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-to-container-restarts-for-a-CONTAINER-GROUP/m-p/227653#M2749</link>
      <description>&lt;P&gt;There is a metric to report the number of container restarts: builtin:kubernetes.container.restarts&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Zrzut ekranu 2023-11-3 o 19.19.11.png" style="width: 200px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/15159iCD13E8795572C6FB/image-size/small?v=v2&amp;amp;px=200" role="button" title="Zrzut ekranu 2023-11-3 o 19.19.11.png" alt="Zrzut ekranu 2023-11-3 o 19.19.11.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 18:19:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-to-container-restarts-for-a-CONTAINER-GROUP/m-p/227653#M2749</guid>
      <dc:creator>radek_jasinski</dc:creator>
      <dc:date>2023-11-03T18:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to container restarts for a CONTAINER_GROUP_INSTANCE?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-to-container-restarts-for-a-CONTAINER-GROUP/m-p/227665#M2752</link>
      <description>&lt;P&gt;Hi Radek, I cannot get this to pull for a CONTAINER_GROUP_INSTANCE. Is there a trick to this?&lt;/P&gt;&lt;P&gt;I can pull for a Kubernetes Namespace.&lt;/P&gt;&lt;P&gt;All my other CGI stats are being queried by CGI.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lou&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 21:36:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-to-container-restarts-for-a-CONTAINER-GROUP/m-p/227665#M2752</guid>
      <dc:creator>crabbylou</dc:creator>
      <dc:date>2023-11-03T21:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to container restarts for a CONTAINER_GROUP_INSTANCE?</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-to-container-restarts-for-a-CONTAINER-GROUP/m-p/227667#M2753</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;For the builtin:kubernetes.container.restarts metric, you do not have the CONTAINER_GROUP_INSTANCE dimension available. This is a different entityType. It is only present for metrics:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;builtin:containers.cpu.*&lt;/LI&gt;&lt;LI&gt;builtin:containers.memory.*&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The metric that tells us about pod restarts on Kubernetes is builtin:kubernetes.container.restarts and below you have the dimensions you can use:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Kubernetes workload (dt.entity.cloud_application), Kubernetes pod (dt.entity.cloud_application_instance), Kubernetes namespace (dt.entity.cloud_application_namespace), Kubernetes cluster (dt.entity.kubernetes_cluster), Kubernetes node (dt. entity.kubernetes_node), dt.kubernetes.node.system_uuid, k8s.cluster.name, k8s.container.name, k8s.cronjob.name, k8s.deployment.name, k8s.namespace.name, k8s.node.name, k8s.pod.name, k8s.pod.uid, k8s.workload.kind, k8s.workload.name.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In this case, I would recommend using Kubernetes namespace.&lt;/P&gt;&lt;P&gt;Some docs for you:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/get-all-entity-types" target="_blank"&gt;https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/get-all-entity-types&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/entity-selector" target="_blank"&gt;https://docs.dynatrace.com/docs/dynatrace-api/environment-api/entity-v2/entity-selector&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this help.&lt;/P&gt;&lt;P&gt;Radek&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 22:18:53 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Is-it-possible-to-container-restarts-for-a-CONTAINER-GROUP/m-p/227667#M2753</guid>
      <dc:creator>radek_jasinski</dc:creator>
      <dc:date>2023-11-03T22:18:53Z</dc:date>
    </item>
  </channel>
</rss>

