# Metric ingest with timestamp

**URL:** <https://community.dynatrace.com/t/metric-ingest-with-timestamp/55474>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, infrastructure-operations, dynatrace-api\
**Created:** [April 4, 2026, 11:49am UTC](https://community.dynatrace.com/t/metric-ingest-with-timestamp/55474 "2026-04-04T11:49:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nareshkumarg](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@nareshkumarg](https://community.dynatrace.com/u/nareshkumarg)\
**Post date:** [April 4, 2026, 11:49am UTC](https://community.dynatrace.com/t/metric-ingest-with-timestamp/55474/1 "2026-04-04T11:49:24Z")

</div>

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.

cpu.temperature,hostname=hostA4,cpu=1 60 1773407891000  
cpu.temperature,hostname=hostA4,cpu=1 65 1773386291000  
cpu.temperature,hostname=hostA4,cpu=1 70 1773343091000  
cpu.temperature,hostname=hostA4,cpu=1 75 1773256691000  
cpu.temperature,hostname=hostA4,cpu=1 80 1773170291000  
cpu.temperature,hostname=hostA4,cpu=1 85 1772828291000

---

<div class="post-metadata">

**Author:** ![tracegazer](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tracegazer/32/32785_2.png) [@tracegazer](https://community.dynatrace.com/u/tracegazer)\
**Post date:** [April 4, 2026, 6:12pm UTC](https://community.dynatrace.com/t/metric-ingest-with-timestamp/55474/2 "2026-04-04T18:12:25Z")

</div>

Hi,

The issue is that all your timestamps are **22 to 28 days in the past**. According to the [Metric ingestion protocol documentation](https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-metrics/reference/metric-ingestion-protocol), the allowed timestamp range for metric ingestion is **between 1 hour into the past and 10 minutes into the future** from the current server time. Data points with timestamps outside of this range are silently rejected.

That’s why you’re only seeing the value `60` — Dynatrace likely accepted one data point (possibly assigning it the server timestamp) and rejected the rest.

To test correctly, make sure all your timestamps fall within the last hour. For example, spacing them 10 minutes apart:

```auto
cpu.temperature,hostname=hostA4,cpu=1 60 <now>
cpu.temperature,hostname=hostA4,cpu=1 65 <now - 600000>
cpu.temperature,hostname=hostA4,cpu=1 70 <now - 1200000>
cpu.temperature,hostname=hostA4,cpu=1 75 <now - 1800000>
cpu.temperature,hostname=hostA4,cpu=1 80 <now - 2400000>
cpu.temperature,hostname=hostA4,cpu=1 85 <now - 3000000>

```

Where `<now>` is the current UTC time in milliseconds. You can generate it with `date +%s%3N` on Linux/macOS or using any epoch converter.

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.

 ![2026-04-04.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/1/81045f62259ffcd4e264ad0711a51dcae6828707.png)

Hope this helps!

---

<div class="post-metadata">

**Author:** ![nareshkumarg](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@nareshkumarg](https://community.dynatrace.com/u/nareshkumarg)\
**Post date:** [April 4, 2026, 10:07pm UTC](https://community.dynatrace.com/t/metric-ingest-with-timestamp/55474/3 "2026-04-04T22:07:24Z")

</div>

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&nbsp;[@tracegazer](https://community.dynatrace.com/user/59639)

---

<div class="post-metadata">

**Author:** ![Ylich](https://avatars.discourse-cdn.com/v4/letter/y/da6949/32.png) [@Ylich](https://community.dynatrace.com/u/Ylich)\
**Post date:** [July 21, 2026, 7:55am UTC](https://community.dynatrace.com/t/metric-ingest-with-timestamp/55474/4 "2026-07-21T07:55:24Z")

</div>

Hi, I have the same issue,

I need to ingest metrics with older timestamps than a month (I am trying to replicate a dashboard I have in azure), what woud you recommend for this?

thx
