<?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: How to get memory metrics of all host in the account in Open Q&amp;A</title>
    <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-get-memory-metrics-of-all-host-in-the-account/m-p/205869#M24882</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/57759"&gt;@kethind&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommand checking the Dynatrace api client Python :&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dynatrace-oss/api-client-python" target="_blank" rel="noopener"&gt;https://github.com/dynatrace-oss/api-client-python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;With the example below :&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;# Get all hosts and some properties&lt;/SPAN&gt;
&lt;SPAN class=""&gt;for&lt;/SPAN&gt; &lt;SPAN class=""&gt;entity&lt;/SPAN&gt; &lt;SPAN class=""&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;dt&lt;/SPAN&gt;.&lt;SPAN class=""&gt;entities&lt;/SPAN&gt;.&lt;SPAN class=""&gt;list&lt;/SPAN&gt;(&lt;SPAN class=""&gt;'type("HOST")'&lt;/SPAN&gt;, &lt;SPAN class=""&gt;fields&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"properties.memoryTotal,properties.monitoringMode"&lt;/SPAN&gt;):
    &lt;SPAN class=""&gt;print&lt;/SPAN&gt;(&lt;SPAN class=""&gt;entity&lt;/SPAN&gt;.&lt;SPAN class=""&gt;entity_id&lt;/SPAN&gt;, &lt;SPAN class=""&gt;entity&lt;/SPAN&gt;.&lt;SPAN class=""&gt;display_name&lt;/SPAN&gt;, &lt;SPAN class=""&gt;entity&lt;/SPAN&gt;.&lt;SPAN class=""&gt;properties&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Aurélien&lt;/P&gt;</description>
    <pubDate>Tue, 28 Feb 2023 17:39:35 GMT</pubDate>
    <dc:creator>AurelienGravier</dc:creator>
    <dc:date>2023-02-28T17:39:35Z</dc:date>
    <item>
      <title>How to get memory metrics of all host in the account</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-get-memory-metrics-of-all-host-in-the-account/m-p/205853#M24878</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;How can I export memory metrics of all the hosts in the account.&lt;/P&gt;&lt;P&gt;I tried using using Data explorer, metrics API but it will allow only top 100 entries.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 15:08:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/How-to-get-memory-metrics-of-all-host-in-the-account/m-p/205853#M24878</guid>
      <dc:creator>kethind</dc:creator>
      <dc:date>2023-02-28T15:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get memory metrics of all host in the account</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-get-memory-metrics-of-all-host-in-the-account/m-p/205869#M24882</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/57759"&gt;@kethind&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recommand checking the Dynatrace api client Python :&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/dynatrace-oss/api-client-python" target="_blank" rel="noopener"&gt;https://github.com/dynatrace-oss/api-client-python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;With the example below :&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;# Get all hosts and some properties&lt;/SPAN&gt;
&lt;SPAN class=""&gt;for&lt;/SPAN&gt; &lt;SPAN class=""&gt;entity&lt;/SPAN&gt; &lt;SPAN class=""&gt;in&lt;/SPAN&gt; &lt;SPAN class=""&gt;dt&lt;/SPAN&gt;.&lt;SPAN class=""&gt;entities&lt;/SPAN&gt;.&lt;SPAN class=""&gt;list&lt;/SPAN&gt;(&lt;SPAN class=""&gt;'type("HOST")'&lt;/SPAN&gt;, &lt;SPAN class=""&gt;fields&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;"properties.memoryTotal,properties.monitoringMode"&lt;/SPAN&gt;):
    &lt;SPAN class=""&gt;print&lt;/SPAN&gt;(&lt;SPAN class=""&gt;entity&lt;/SPAN&gt;.&lt;SPAN class=""&gt;entity_id&lt;/SPAN&gt;, &lt;SPAN class=""&gt;entity&lt;/SPAN&gt;.&lt;SPAN class=""&gt;display_name&lt;/SPAN&gt;, &lt;SPAN class=""&gt;entity&lt;/SPAN&gt;.&lt;SPAN class=""&gt;properties&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards Aurélien&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 17:39:35 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/How-to-get-memory-metrics-of-all-host-in-the-account/m-p/205869#M24882</guid>
      <dc:creator>AurelienGravier</dc:creator>
      <dc:date>2023-02-28T17:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get memory metrics of all host in the account</title>
      <link>https://community.dynatrace.com/t5/Open-Q-A/How-to-get-memory-metrics-of-all-host-in-the-account/m-p/205899#M24892</link>
      <description>&lt;P&gt;You can use below api to get this memory information,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://{environmentid}.live.dynatrace.com/api/v2/entities?entitySelector=type("HOST")&amp;amp;entitySelector=type("HOST_GROUP")&amp;amp;fields=properties.detectedName,properties.memoryTotal,properties.isMonitoringCandidate,tags,managementZones&amp;amp;pageSize=1000&amp;amp;Api-Token={Your api access token with appropriate permission}&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 19:39:34 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Open-Q-A/How-to-get-memory-metrics-of-all-host-in-the-account/m-p/205899#M24892</guid>
      <dc:creator>sharjeelb</dc:creator>
      <dc:date>2023-02-28T19:39:34Z</dc:date>
    </item>
  </channel>
</rss>

