fnchooft / influx-copy

InfluxDB Copy CLI tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InfluxCopy

A generic influx copy script with ability to update values of tags based on given information

Installation

Make sure you have Erlang 18+ installed. Elixir is not needed to run the executable but if you wish to build on your own, you will need Elixir 1.3+.

Grab the influx-copy executable and you are good to go.

sudo wget https://github.com/Brightergy/influx-copy/raw/master/influx_copy -O /usr/local/bin

Usage

./influx_copy -S "https://user:pass@host:8086/db:measurement" -d "https://user:pass@host:333/db:measurement"

./influx_copy -S "http://a:a@localhost:8086/brighterlink_io_dev:power" -d "http://a:a@localhost:8086/brighterlink_io_test:power" -s 1469464091 -e 1469468091 -u "facility_id:1->3" -t "company_id,facility_id,device_id"

For more details on CLI args, check influx_copy.ex

About

InfluxDB Copy CLI tool


Languages

Language:Elixir 100.0%