<?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: Metric ingest with timestamp in Dynatrace API</title>
    <link>https://community.dynatrace.com/t5/Dynatrace-API/Metric-ingest-with-timestamp/m-p/297281#M3977</link>
    <description>&lt;P&gt;You have nailed it. I was trying to test with larger sample set. Now as suggested I have reduced the set to the past 1 hour and it worked. Thank you so much&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/59639"&gt;@tracegazer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 04 Apr 2026 22:07:24 GMT</pubDate>
    <dc:creator>nareshkumarg</dc:creator>
    <dc:date>2026-04-04T22:07:24Z</dc:date>
    <item>
      <title>Metric ingest with timestamp</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Metric-ingest-with-timestamp/m-p/297276#M3975</link>
      <description>&lt;P&gt;I am trying to make one api call to ingest folllowing test metric but I can see only the first payload with the value 60 in Dynatrace other values from different timestamp is not showing there.&lt;/P&gt;
&lt;P&gt;cpu.temperature,hostname=hostA4,cpu=1 60 1773407891000&lt;BR /&gt;cpu.temperature,hostname=hostA4,cpu=1 65 1773386291000&lt;BR /&gt;cpu.temperature,hostname=hostA4,cpu=1 70 1773343091000&lt;BR /&gt;cpu.temperature,hostname=hostA4,cpu=1 75 1773256691000&lt;BR /&gt;cpu.temperature,hostname=hostA4,cpu=1 80 1773170291000&lt;BR /&gt;cpu.temperature,hostname=hostA4,cpu=1 85 1772828291000&lt;/P&gt;</description>
      <pubDate>Wed, 08 Apr 2026 06:41:52 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Metric-ingest-with-timestamp/m-p/297276#M3975</guid>
      <dc:creator>nareshkumarg</dc:creator>
      <dc:date>2026-04-08T06:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Metric ingest with timestamp</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Metric-ingest-with-timestamp/m-p/297278#M3976</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The issue is that all your timestamps are &lt;STRONG&gt;22 to 28 days in the past&lt;/STRONG&gt;. According to the &lt;A href="https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-metrics/reference/metric-ingestion-protocol" target="_blank" rel="noopener"&gt;Metric ingestion protocol documentation&lt;/A&gt;, the allowed timestamp range for metric ingestion is &lt;STRONG&gt;between 1 hour into the past and 10 minutes into the future&lt;/STRONG&gt; from the current server time. Data points with timestamps outside of this range are silently rejected.&lt;/P&gt;&lt;P&gt;That's why you're only seeing the value &lt;CODE&gt;60&lt;/CODE&gt; — Dynatrace likely accepted one data point (possibly assigning it the server timestamp) and rejected the rest.&lt;/P&gt;&lt;P&gt;To test correctly, make sure all your timestamps fall within the last hour. For example, spacing them 10 minutes apart:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;cpu.temperature,hostname=hostA4,cpu=1 60 &amp;lt;now&amp;gt;
cpu.temperature,hostname=hostA4,cpu=1 65 &amp;lt;now - 600000&amp;gt;
cpu.temperature,hostname=hostA4,cpu=1 70 &amp;lt;now - 1200000&amp;gt;
cpu.temperature,hostname=hostA4,cpu=1 75 &amp;lt;now - 1800000&amp;gt;
cpu.temperature,hostname=hostA4,cpu=1 80 &amp;lt;now - 2400000&amp;gt;
cpu.temperature,hostname=hostA4,cpu=1 85 &amp;lt;now - 3000000&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Where &lt;CODE&gt;&amp;lt;now&amp;gt;&lt;/CODE&gt; is the current UTC time in milliseconds. You can generate it with &lt;CODE&gt;date +%s%3N&lt;/CODE&gt; on Linux/macOS or using any epoch converter.&lt;/P&gt;&lt;P&gt;Alternatively, you can omit the timestamp entirely and Dynatrace will use the server time automatically — but in that case all data points will share the same timestamp, which won't work for simulating a time series.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2026-04-04.png" style="width: 576px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/32622iF29C84699086C6B5/image-dimensions/576x341?v=v2" width="576" height="341" role="button" title="2026-04-04.png" alt="2026-04-04.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope this helps! &lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2026 18:12:25 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Metric-ingest-with-timestamp/m-p/297278#M3976</guid>
      <dc:creator>tracegazer</dc:creator>
      <dc:date>2026-04-04T18:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Metric ingest with timestamp</title>
      <link>https://community.dynatrace.com/t5/Dynatrace-API/Metric-ingest-with-timestamp/m-p/297281#M3977</link>
      <description>&lt;P&gt;You have nailed it. I was trying to test with larger sample set. Now as suggested I have reduced the set to the past 1 hour and it worked. Thank you so much&amp;nbsp;&lt;a href="https://community.dynatrace.com/t5/user/viewprofilepage/user-id/59639"&gt;@tracegazer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Apr 2026 22:07:24 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Dynatrace-API/Metric-ingest-with-timestamp/m-p/297281#M3977</guid>
      <dc:creator>nareshkumarg</dc:creator>
      <dc:date>2026-04-04T22:07:24Z</dc:date>
    </item>
  </channel>
</rss>

