cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ingest custom metric with time

dcappare
Participant

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

3 REPLIES 3

dannemca
DynaMight Guru
DynaMight Guru

 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.

Site Reliability Engineer @ Kyndryl

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

The "line protocol" format allows you to ingest multiple data points with timestamps in one request.

 

https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/metric-ingestio...

 

It looks like the timestamps have to be within <-3600000;+600000> ms of current time like the dynatrace_ingest command.  

Featured Posts