01 Feb 2022 04:32 AM - last edited on 02 Feb 2022 02:44 AM by MaciejNeumann
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.
Yes, it does. You can use the Metric API v2, for example:
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.
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.
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.