Bugazelle / export-csv-to-influx

The python library to write the CSV data into Influx. Support me via Bitcoin: bc1qqgkmph9cvygzxfpupv4jr4n0nfx3qumwg39j5w
BSD 3-Clause "New" or "Revised" License
32 stars 11 forks source link

same time #44

Open Xav3869 opened 3 years ago

Xav3869 commented 3 years ago

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

7yl4r commented 3 years ago

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?

Bugazelle commented 2 years ago

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