<?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: Export GC executions per minute in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Export-GC-executions-per-minute/m-p/115082#M3501</link>
    <description>&lt;P&gt;Hi Josep,&lt;/P&gt;&lt;P&gt;To get this number you would need to export &lt;/P&gt;&lt;PRE&gt;builtin:tech.jvm.memory.gc.activationCount&lt;/PRE&gt;&lt;P&gt;This comes out as a Total Count number. With the Metrics V2 API you have fine grained control over the data. Since you want to split this for all your JVMs you will have to play around with the API to see what works best for the amount of JVMs and the amount of API calls that you make.&lt;/P&gt;&lt;P&gt;Let's break down an example call:&lt;/P&gt;&lt;PRE&gt;&lt;A rel="noopener noreferrer" href="https://xxxxxxxxxxxxxxxx/api/v2/metrics/query?pageSize=10&amp;amp;metricSelector=builtin%3Atech.jvm.memory.gc.activationCount&amp;amp;resolution=1m&amp;amp;from=now-3m" target="_blank"&gt;https://xxxxxxxxxxxxxxxx/api/v2/metrics/query?pageSize=10&amp;amp;metricSelector=builtin%3Atech.jvm.memory.gc.activationCount&amp;amp;resolution=1m&amp;amp;from=now-3m&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;I've replaced my environment with the "xxxxxxxx" string.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pageSize &lt;/STRONG&gt;- how many entities do you want the results to be returned for (in this case, how many JVMs). You will get a token with your response which you can use to make subsequent API calls to get page by page all the JVMs that this metric is collected for.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;metricSelector &lt;/STRONG&gt;- the exact string I addeded above (builtin....)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;resolution=1m&lt;/STRONG&gt; - this ensures that no matter how large the timeframe, you get your results at your desired 1 minute granularity&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from=now-3m&lt;/STRONG&gt; - this translates to "my timeframe is relative. take the results from the last 3 minutes" and will give me 4 timestamps (incl. the current minute) and data points per JVM. You will need to tailor this because the more you increase the timeframe, the larger the JSON payloads get. If you wanted to get the data for the last 1 minute you would use now-1m and that would give you 2 data points (the last minute, and the current minute).&lt;/P&gt;&lt;P&gt;You can, of course, also use absolute timestamps. In that cause use &lt;STRONG&gt;from &lt;/STRONG&gt;and &lt;STRONG&gt;to &lt;/STRONG&gt;and set these to the desired time in UTC milliseconds.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Let me know if you have any other questions.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Radu&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jul 2020 11:33:29 GMT</pubDate>
    <dc:creator>Radu</dc:creator>
    <dc:date>2020-07-24T11:33:29Z</dc:date>
    <item>
      <title>Export GC executions per minute</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Export-GC-executions-per-minute/m-p/115081#M3500</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;i want to export the GC executions per minute in order to insert these GC executions / minute for all my JVM in one external database. How can I do that?&lt;/P&gt;
&lt;P&gt;My first idea was to query Dynatrace with the metrics API every minute and extract the GC executions / minute for every JVM with this API.&lt;/P&gt;
&lt;P&gt;Is this the rigth way to do that?&lt;/P&gt;
&lt;P&gt;I the response is "yes", can someone tell me the query to the metrics API to do this.&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;P&gt;Josep Maria&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 08:47:56 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Export-GC-executions-per-minute/m-p/115081#M3500</guid>
      <dc:creator>jcamps</dc:creator>
      <dc:date>2023-05-25T08:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Export GC executions per minute</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Export-GC-executions-per-minute/m-p/115082#M3501</link>
      <description>&lt;P&gt;Hi Josep,&lt;/P&gt;&lt;P&gt;To get this number you would need to export &lt;/P&gt;&lt;PRE&gt;builtin:tech.jvm.memory.gc.activationCount&lt;/PRE&gt;&lt;P&gt;This comes out as a Total Count number. With the Metrics V2 API you have fine grained control over the data. Since you want to split this for all your JVMs you will have to play around with the API to see what works best for the amount of JVMs and the amount of API calls that you make.&lt;/P&gt;&lt;P&gt;Let's break down an example call:&lt;/P&gt;&lt;PRE&gt;&lt;A rel="noopener noreferrer" href="https://xxxxxxxxxxxxxxxx/api/v2/metrics/query?pageSize=10&amp;amp;metricSelector=builtin%3Atech.jvm.memory.gc.activationCount&amp;amp;resolution=1m&amp;amp;from=now-3m" target="_blank"&gt;https://xxxxxxxxxxxxxxxx/api/v2/metrics/query?pageSize=10&amp;amp;metricSelector=builtin%3Atech.jvm.memory.gc.activationCount&amp;amp;resolution=1m&amp;amp;from=now-3m&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;I've replaced my environment with the "xxxxxxxx" string.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pageSize &lt;/STRONG&gt;- how many entities do you want the results to be returned for (in this case, how many JVMs). You will get a token with your response which you can use to make subsequent API calls to get page by page all the JVMs that this metric is collected for.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;metricSelector &lt;/STRONG&gt;- the exact string I addeded above (builtin....)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;resolution=1m&lt;/STRONG&gt; - this ensures that no matter how large the timeframe, you get your results at your desired 1 minute granularity&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;from=now-3m&lt;/STRONG&gt; - this translates to "my timeframe is relative. take the results from the last 3 minutes" and will give me 4 timestamps (incl. the current minute) and data points per JVM. You will need to tailor this because the more you increase the timeframe, the larger the JSON payloads get. If you wanted to get the data for the last 1 minute you would use now-1m and that would give you 2 data points (the last minute, and the current minute).&lt;/P&gt;&lt;P&gt;You can, of course, also use absolute timestamps. In that cause use &lt;STRONG&gt;from &lt;/STRONG&gt;and &lt;STRONG&gt;to &lt;/STRONG&gt;and set these to the desired time in UTC milliseconds.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;Let me know if you have any other questions.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Radu&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jul 2020 11:33:29 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Export-GC-executions-per-minute/m-p/115082#M3501</guid>
      <dc:creator>Radu</dc:creator>
      <dc:date>2020-07-24T11:33:29Z</dc:date>
    </item>
  </channel>
</rss>

