<?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 Automate removal of old ActiveGates and OneAgents in Container platforms</title>
    <link>https://community.dynatrace.com/t5/Container-platforms/Automate-removal-of-old-ActiveGates-and-OneAgents/m-p/214464#M1655</link>
    <description>&lt;P&gt;Hi, we multiple dynamic EKS environments that are deployed using Argo &amp;amp; Terraform.&lt;BR /&gt;We also deployed the Dynatrace operator (helm chart) and the Dynakube custom resources (helm chart) for each cluster using&amp;nbsp; Argo &amp;amp; Terraform. We use the Classic Full stack deloyment method because this method is recommended.&lt;/P&gt;
&lt;P&gt;Everything is configured as code, and Argo reconciles and scales everything nicely. I can even write a blog about it.&lt;/P&gt;
&lt;P&gt;But we have a problem. The clusters shrink and scale and nodes are added and removed on the fly. Also new clusters are added and removed on the fly automatically.&lt;BR /&gt;&lt;BR /&gt;But every time a node (OneAgent) is removed on Kubernetes(Argo) it is not removed in the Dynatrace portal.&lt;/P&gt;
&lt;P&gt;So we are left with a lot of OneAgents and Activegates in Dynatrace that not exist anymore. And they still consume Host Units and are billed unfortunately...&lt;BR /&gt;It try to erase them using the Dynatrace API but no luck....&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;curl -X DELETE "https://{environmentid}.live.dynatrace.com/api/v1/oneagents/HOST-CA604A85B22E06EC" -H "Authorization: Api-Token ${DYNA_APITOKEN}"&lt;BR /&gt;&lt;BR /&gt;How can we remove old ActiveGates and&amp;nbsp; OneAgents and how do I automate this?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 13 Jun 2023 15:23:07 GMT</pubDate>
    <dc:creator>PeterR</dc:creator>
    <dc:date>2023-06-13T15:23:07Z</dc:date>
    <item>
      <title>Automate removal of old ActiveGates and OneAgents</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Automate-removal-of-old-ActiveGates-and-OneAgents/m-p/214464#M1655</link>
      <description>&lt;P&gt;Hi, we multiple dynamic EKS environments that are deployed using Argo &amp;amp; Terraform.&lt;BR /&gt;We also deployed the Dynatrace operator (helm chart) and the Dynakube custom resources (helm chart) for each cluster using&amp;nbsp; Argo &amp;amp; Terraform. We use the Classic Full stack deloyment method because this method is recommended.&lt;/P&gt;
&lt;P&gt;Everything is configured as code, and Argo reconciles and scales everything nicely. I can even write a blog about it.&lt;/P&gt;
&lt;P&gt;But we have a problem. The clusters shrink and scale and nodes are added and removed on the fly. Also new clusters are added and removed on the fly automatically.&lt;BR /&gt;&lt;BR /&gt;But every time a node (OneAgent) is removed on Kubernetes(Argo) it is not removed in the Dynatrace portal.&lt;/P&gt;
&lt;P&gt;So we are left with a lot of OneAgents and Activegates in Dynatrace that not exist anymore. And they still consume Host Units and are billed unfortunately...&lt;BR /&gt;It try to erase them using the Dynatrace API but no luck....&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;curl -X DELETE "https://{environmentid}.live.dynatrace.com/api/v1/oneagents/HOST-CA604A85B22E06EC" -H "Authorization: Api-Token ${DYNA_APITOKEN}"&lt;BR /&gt;&lt;BR /&gt;How can we remove old ActiveGates and&amp;nbsp; OneAgents and how do I automate this?&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Jun 2023 15:23:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Automate-removal-of-old-ActiveGates-and-OneAgents/m-p/214464#M1655</guid>
      <dc:creator>PeterR</dc:creator>
      <dc:date>2023-06-13T15:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Automate removal of old ActiveGates and OneAgents</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Automate-removal-of-old-ActiveGates-and-OneAgents/m-p/215979#M1699</link>
      <description>&lt;P&gt;If the host isn't being monitored it shouldn't be consuming Host Units, or be billing you since billing is consumed by Host Unit Hours. What Oneagent Version are they? what Cluster version are you on?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 15:33:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Automate-removal-of-old-ActiveGates-and-OneAgents/m-p/215979#M1699</guid>
      <dc:creator>ChadTurner</dc:creator>
      <dc:date>2023-06-23T15:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Automate removal of old ActiveGates and OneAgents</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Automate-removal-of-old-ActiveGates-and-OneAgents/m-p/216601#M1718</link>
      <description>&lt;P&gt;Hi Chad,&lt;/P&gt;&lt;P&gt;The dynatrace operator manages the versions. Currently these are:&lt;BR /&gt;activegate version 1.267.118.20230602-131900&lt;BR /&gt;oneagent version 1.267.125.20230613-102915&lt;/P&gt;&lt;P&gt;We see that old hosts and oneagents eventually disappear, but it takes a while! I'm not entirely sure for how long they are billed.&lt;BR /&gt;We want to at least make it possible to cleanup faster or delete the hosts with an API call...&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2023 10:04:45 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Automate-removal-of-old-ActiveGates-and-OneAgents/m-p/216601#M1718</guid>
      <dc:creator>PeterR</dc:creator>
      <dc:date>2023-06-30T10:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Automate removal of old ActiveGates and OneAgents</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Automate-removal-of-old-ActiveGates-and-OneAgents/m-p/216609#M1719</link>
      <description>&lt;P&gt;Currently there are 6 kubernetes clusters connected. These are 52 hosts in total, healthy and consuming...&lt;/P&gt;&lt;P&gt;In the deployment status menu I see:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Showing 934&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;hosts.&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Host unit consumption: 11.355 (for 934 visible&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;hosts) / 11.685 (for 961 total&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;hosts)&lt;/DIV&gt;</description>
      <pubDate>Fri, 30 Jun 2023 10:09:18 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Automate-removal-of-old-ActiveGates-and-OneAgents/m-p/216609#M1719</guid>
      <dc:creator>PeterR</dc:creator>
      <dc:date>2023-06-30T10:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Automate removal of old ActiveGates and OneAgents</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Automate-removal-of-old-ActiveGates-and-OneAgents/m-p/278374#M3107</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/48553"&gt;@PeterR&lt;/a&gt;&amp;nbsp;, did you manage to find the solution to your problem? If so, it would be amazing if you've shared it with the rest of the Community! If not, let me know, and I'll look for some further assistance&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 10:53:04 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Automate-removal-of-old-ActiveGates-and-OneAgents/m-p/278374#M3107</guid>
      <dc:creator>IzabelaRokita</dc:creator>
      <dc:date>2025-05-30T10:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Automate removal of old ActiveGates and OneAgents</title>
      <link>https://community.dynatrace.com/t5/Container-platforms/Automate-removal-of-old-ActiveGates-and-OneAgents/m-p/278383#M3113</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/67399"&gt;@IzabelaRokita&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Unfortunately, Dynatrace doesn't support removal of these components and the related data using the API or some other way.&lt;BR /&gt;Thousands of removed hosts and garbage data can't be deleted. All this useless data is also consuming cost/credits.&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 13:15:03 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Container-platforms/Automate-removal-of-old-ActiveGates-and-OneAgents/m-p/278383#M3113</guid>
      <dc:creator>PeterR</dc:creator>
      <dc:date>2025-05-30T13:15:03Z</dc:date>
    </item>
  </channel>
</rss>

