I want to migrate my archive data (~ 76GB) from version 1.7.6 to version 3 Core using Telegraf. At this point, can I perform this migration using Telegraf, and what should the configuration be?
I have a telegraf config like the one below, but I’m not sure if it’s correct.
[agent]
interval = “60s”
round_interval = true
metric_batch_size = 5000
metric_buffer_limit = 100000
collection_jitter = “5s”
flush_interval = “30s”
flush_jitter = “5s”
logfile = “/var/log/telegraf-migration.log”
###############################################################################
OLD InfluxDB v1.7 INPUT
###############################################################################
[[inputs.influxdb]]
urls = [“http://<OLD_SERVER_IP>:8086”]
database = “org”
username = “your_user”
password = “your_pass”
tagexclude = [“host”]
start_date = “2023-01-01T00:00:00Z”
end_date = “2025-01-01T00:00:00Z”
measurement = “.*”
###############################################################################
NEW InfluxDB v3 OUTPUT
###############################################################################
[[outputs.influxdb_v2]]
urls = [“http://localhost:8181”]
token = “<v3_token>”
organization = “org”
bucket = “org_archive”
