[Solved]Create a data generator

Hi,
i want to create some sort of a data generator for a lab environment.
i though of creating some kind of a script, that will get db name and comma separated metric names, and will get old data from the influx-db, change its time stamp to the current time, and save it back to influx-db.
i;m not sure what would be the best and easiest way to do it,
python script? kapacitor udf ?
any ideas ?

thanks,
david,

found it !

tick script:

var data = batch
    |query(''' SELECT * FROM "DB"."autogen"."Measurement" ''')
        .period(5m)
        .every(10s)
        .offset(155d)
        .groupBy(*)
data
    |shift(155d)
    |influxDBOut()
        .database('DB')
        .retentionPolicy('autogen')
        .measurement('Measurement')

working like a charm

1 Like