01 Feb 2022 12:32 PM - last edited on 02 Feb 2022 10:44 AM by MaciejNeumann
Hi all,
i need to ingest fake data metric for a little demo.
Is there any approach to insert metric with datetime to build graph line based on my fake date?
Thank a lot for the support
Solved! Go to Solution.
01 Feb 2022 01:07 PM
Yes, it does. You can use the Metric API v2, for example:
https://www.dynatrace.com/support/help/shortlink/metric-ingestion#ingestion-methods
All ingested metrics will have the timeframe based on the time you send the data. You can also include custom data as a dimension too, but Dynatrace will use the timeframe based on the date you sent them.
01 Feb 2022 07:37 PM
Thanks for your reply but this is the "normal" way and it's necessary schedule with frequency an ingestion of metric. I want insert one shot all data with fake date and obtain the timeseries based on my date.
Thanks again
02 Feb 2022 03:59 PM
The "line protocol" format allows you to ingest multiple data points with timestamps in one request.
It looks like the timestamps have to be within <-3600000;+600000> ms of current time like the dynatrace_ingest command.