export-csv-to-influx icon indicating copy to clipboard operation
export-csv-to-influx copied to clipboard

same time

Open Xav3869 opened this issue 4 years ago • 2 comments

Hello ,

I am trying to import data in infludb by using export-vvs-to-influx . It is pretty amazing how fast is it and how easy to use. Thanks for your job .

I am facing a problem. In my datas a lot of entries have the same timestamp. So in this case only one is recorded by Influxdb.

I am wondering if your script have take in charge this feature?

https://docs.influxdata.com/influxdb/v2.0/write-data/best-practices/duplicate-points/ " Preserve duplicate points

To preserve both old and new field values in duplicate points, use one of the following strategies:

Add an arbitrary tag
Increment the timestamp

" Do you plan something in your tool ?

Thanks in advance for your reply. Xavier

Xav3869 avatar Dec 18 '20 10:12 Xav3869

I don't think incrementing the time stamp is the way to go but adding an arbitrary tag might be useful. Something like duplicate_point_1, duplicate_point_2,... duplicate_point_n?

7yl4r avatar Jan 19 '21 16:01 7yl4r

Hello @Xav3869

Sorry for the delay.... 1 year passed, 2021 is a challenge year for me... The latest lib 0.2.0 should fix your issue Please upgrade the lib: pip install ExportCsvToInflux --upgrade

and then use: --unique True in your command

Bugazelle avatar Mar 12 '22 13:03 Bugazelle