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

argument error #47

Open MASIFAYUB opened 2 years ago

MASIFAYUB commented 2 years ago

it asks for --dbname while I am using it for influxdbv2.1 with a provided bucket, org, and token id.

image

Bugazelle commented 2 years ago

Hello @MASIFAYUB

The lib just upgrade to 0.2.0, please use the latest lib to support the influx2.x: pip install ExportCsvToInflux --upgrade

You may find more guide here: https://github.com/Bugazelle/export-csv-to-influx/blob/master/README.md

export_csv_to_influx \
  --csv demo.csv \
  --org my-org \
  --bucket my-bucket \
  --measurement demo \
  --tag_columns url \
  --field_columns response_time \
  --token YourToken \
  --server 127.0.0.1:8086