04 Apr 2026
12:49 PM
- last edited on
08 Apr 2026
07:41 AM
by
MaciejNeumann
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
Solved! Go to Solution.
04 Apr 2026 07:12 PM
Hi,
The issue is that all your timestamps are 22 to 28 days in the past. According to the Metric ingestion protocol documentation, 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:
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.
Hope this helps!
04 Apr 2026 11:07 PM
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 @tracegazer
Featured Posts