<?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: I can not get the API to collect the %CPU of a monitor host in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/I-can-not-get-the-API-to-collect-the-CPU-of-a-monitor-host/m-p/127349#M1389</link>
    <description>&lt;P&gt;Hello &lt;A rel="user" href="https://answers.dynatrace.com/users/31501/view.html" nodeid="31501"&gt;@EBA'A CHI O.&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Remember to never provide the Dynatrace environment ID in your question. Here are a couple of tips on how to ask the best question on our forum and increase your chances of getting a quick and precise answer:&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23655-23358-ask-questions-1-04.png" /&gt; &lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2020 15:22:48 GMT</pubDate>
    <dc:creator>MaciejNeumann</dc:creator>
    <dc:date>2020-02-18T15:22:48Z</dc:date>
    <item>
      <title>I can not get the API to collect the %CPU of a monitor host</title>
      <link>https://community.dynatrace.com/t5/Extensions/I-can-not-get-the-API-to-collect-the-CPU-of-a-monitor-host/m-p/127348#M1388</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I need to collect Memory, CPU of a Host.&lt;/P&gt;&lt;P&gt;I also need to collect Response time of a service.&lt;/P&gt;&lt;P&gt;I read the API Document but didn't understand what to do.&lt;/P&gt;&lt;P&gt;Can you give me an exemple then i will learn from it&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 14:54:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/I-can-not-get-the-API-to-collect-the-CPU-of-a-monitor-host/m-p/127348#M1388</guid>
      <dc:creator>olivier_ebaach1</dc:creator>
      <dc:date>2020-02-18T14:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: I can not get the API to collect the %CPU of a monitor host</title>
      <link>https://community.dynatrace.com/t5/Extensions/I-can-not-get-the-API-to-collect-the-CPU-of-a-monitor-host/m-p/127349#M1389</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://answers.dynatrace.com/users/31501/view.html" nodeid="31501"&gt;@EBA'A CHI O.&lt;/A&gt;,&lt;BR /&gt;&lt;BR /&gt;Remember to never provide the Dynatrace environment ID in your question. Here are a couple of tips on how to ask the best question on our forum and increase your chances of getting a quick and precise answer:&lt;BR /&gt;&lt;BR /&gt;&lt;IMG src="https://community.dynatrace.com/legacyfs/online/23655-23358-ask-questions-1-04.png" /&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 15:22:48 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/I-can-not-get-the-API-to-collect-the-CPU-of-a-monitor-host/m-p/127349#M1389</guid>
      <dc:creator>MaciejNeumann</dc:creator>
      <dc:date>2020-02-18T15:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: I can not get the API to collect the %CPU of a monitor host</title>
      <link>https://community.dynatrace.com/t5/Extensions/I-can-not-get-the-API-to-collect-the-CPU-of-a-monitor-host/m-p/127350#M1390</link>
      <description>&lt;P&gt;Hello &lt;A rel="user" href="https://answers.dynatrace.com/users/31501/view.html" nodeid="31501"&gt;@EBA'A CHI O.&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Here is an example request to capture host CPU idle for every hour in the last day:&lt;/P&gt;&lt;PRE&gt;https://xxxx.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin%3Ahost.cpu.idle&amp;amp;resolution=h&amp;amp;from=now-1d%2Fh&amp;amp;entitySelector=type%28HOST%29%2CentityId%28HOST-C98F015DFD9D8A95%29&lt;/PRE&gt;&lt;P&gt;Keep in mind you will also need your token for this.&lt;/P&gt;&lt;P&gt;Here are some good resources for creating these requests:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/news/blog/integrate-dynatrace-more-easily-using-the-new-metrics-rest-api/"&gt;https://www.dynatrace.com/news/blog/integrate-dynatrace-more-easily-using-the-new-metrics-rest-api/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/metric-v2/get-data-points/"&gt;https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/metric-v2/get-data-points/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Also, if you haven't tried. Go to your tenant and click the user icon. Under "dynatrace API" select "Environment API". This gives you a pretty great interface for creating a simple query.&lt;/P&gt;&lt;P&gt;Let me know if you need more help.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;-Dallas&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 16:25:13 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/I-can-not-get-the-API-to-collect-the-CPU-of-a-monitor-host/m-p/127350#M1390</guid>
      <dc:creator>Dallas</dc:creator>
      <dc:date>2020-02-18T16:25:13Z</dc:date>
    </item>
  </channel>
</rss>

