Just another Influxdb1 to influxdb2 migration question (csv)

xefil
Thu, 15 Feb 2024 09:18:32 +0000
Systems

Hi there,
I’ve remote access to a InfluxDBv1 instance and would like to migrate my data to a local InfluxDBv2 instance (with gui).
I’m trying to export in CSV from v1 and then import to v2.
I’m exporting the data this way:

influx -host influxdb-remote -port 8086 -database 'telegraf' -ssl -execute 'select * from vCenter' -format csv > vCenter.csv

This creates me a file in this format:

name,time,clusters,customer_vm,customer_vm_percent,hostname,hosts,internal_vm,internal_vm_percent,linux,other,poweredoff,poweredon,total,windows
vCenter,1705276801315756940,1,145,100,vcenter001,12,0,0,142,3,14,131,145,0

BTW, trying to import that file via webgui into InfluxDB2 as CSV or Line Protocol it doesn’t work.

CSV:
error in csv.from() failed to read metadata missing expected annotation datatype

Line Protocol:
Failed to write data - invalid line protocol submitted

Ideas?
Thanks,

Simon

5 posts - 2 participants